diff options
| author | jdhao <jdhao@hotmail.com> | 2021-06-17 01:41:28 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-06-17 01:41:28 +0800 |
| commit | 35d878eeaf6c0d5cae610bcec75296dee58c5acf (patch) | |
| tree | cdb8107e1bd18d657edbc805b336142084cc7da8 /lua | |
| parent | 7ace83853411c27133b5052946150dc7348954f5 (diff) | |
Update nvim-compe settings
Only enable spell source for Markdown files, see also https://github.com/hrsh7th/nvim-compe/pull/84.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lsp/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 8c76e56..3097223 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -134,7 +134,7 @@ require'compe'.setup { source = { path = true; buffer = true; - spell = true; + spell = false; emoji = true; nvim_lsp = true; nvim_lua = true; @@ -144,6 +144,8 @@ require'compe'.setup { }; } +vim.api.nvim_command("autocmd FileType markdown lua require'compe'.setup({source = {spell=true}}, 0)") + vim.o.completeopt = "menuone,noselect" -- nvim-comple mappings |
