Skip to content

Commit

Permalink
docs: update cmp, no need to check recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
RayGuo-ergou committed Jun 12, 2024
1 parent 9f2b007 commit 37f84d8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,12 @@ sources = cmp.config.sources({
-- local ts_utils = require('nvim-treesitter.ts_utils')
-- local function is_in_start_tag()
-- local node = ts_utils.get_node_at_cursor()
-- while node do
-- if node:type() == 'start_tag' then
-- return true
-- end
-- node = node:parent()
-- if not node then
-- return false
-- end
-- return false
-- return node:type() == 'start_tag'
-- end
--

-- -- If not in start tag, return true
-- if not is_in_start_tag() then
-- return true
Expand Down

0 comments on commit 37f84d8

Please sign in to comment.