Skip to content

Commit be8b111

Browse files
committed
disable scopes if final filetype doesn't have ts support
1 parent cf10bf8 commit be8b111

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/cmp.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ if vim.fn.has('nvim-0.9') then
5858
autocmd.subscribe({ 'FileType' }, function(details)
5959
if vim.treesitter.language.get_lang(details.match) then
6060
vim.b[details.buf].cmp_buf_has_ts_parser = true
61+
else
62+
vim.b[details.buf].cmp_buf_has_ts_parser = false
6163
end
6264
end)
6365
autocmd.subscribe({ 'BufUnload' }, function(details)

0 commit comments

Comments
 (0)