Skip to content

Commit

Permalink
fix: allow disabling dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed May 5, 2024
1 parent 267e42c commit 7113186
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flakes/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,13 @@ local function configure_auto_completion()
-- vim.o.completeopt = 'menu,menuone,noselect'
vim.o.completeopt = 'menu,menuone,noselect,preview'

local dictionaries = {}
if os.getenv('NVIM_ENABLE_DICTIONARIES') == 'true' then
dictionaries = { '/usr/share/dict/words' }
end

require('cmp_dictionary').setup({
paths = { '/usr/share/dict/words' },
paths = dictionaries,
exact_length = 2,
first_case_insensitive = true,
document = {
Expand Down

0 comments on commit 7113186

Please sign in to comment.