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:
parent
ec6ef55325
commit
b32ab3e38b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user