Skip to content

Commit

Permalink
Fix to set 'dictionary'
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Aug 30, 2023
1 parent f076c6b commit 363ce91
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lua/cmp_dictionary/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ function M.switcher(opt)
})
end

if opt.filepath then
vim.api.nvim_create_autocmd("BufEnter", {
group = id,
callback = callback,
})
end
-- 'dictionary' is buffer-local
vim.api.nvim_create_autocmd("BufEnter", {
group = id,
callback = callback,
})

if opt.spelllang then
vim.api.nvim_create_autocmd("OptionSet", {
Expand Down

0 comments on commit 363ce91

Please sign in to comment.