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 spell source for Markdown files, see also https://github.com/hrsh7th/nvim-compe/pull/84.
This commit is contained in:
jdhao 2021-06-17 01:41:28 +08:00
parent 7ace838534
commit 35d878eeaf

View File

@ -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