1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update nvim-compe settings

Only enable omni and spell source for certain filetypes. See also https://github.com/hrsh7th/nvim-compe/pull/170
This commit is contained in:
jdhao 2021-06-18 16:49:47 +08:00 committed by GitHub
parent ec6ef55325
commit b32ab3e38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,9 +132,10 @@ require'compe'.setup {
documentation = true;
source = {
omni = {filetypes = {'tex'}};
path = true;
buffer = true;
spell = false;
spell = {filetypes = {'markdown', 'tex'}};
emoji = true;
nvim_lsp = true;
nvim_lua = true;
@ -144,8 +145,6 @@ 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