reduce startuptime for compe
This commit is contained in:
parent
57b9c3f5c6
commit
b61ead83c1
1 changed files with 22 additions and 1 deletions
|
@ -15,7 +15,7 @@ require "compe".setup {
|
||||||
documentation = true,
|
documentation = true,
|
||||||
source = {
|
source = {
|
||||||
path = true,
|
path = true,
|
||||||
buffer = {kind = "" , true},
|
buffer = {kind = "", true},
|
||||||
calc = true,
|
calc = true,
|
||||||
vsnip = {kind = ""}, --replace to what sign you prefer
|
vsnip = {kind = ""}, --replace to what sign you prefer
|
||||||
nvim_lsp = true,
|
nvim_lsp = true,
|
||||||
|
@ -79,3 +79,24 @@ function _G.completions()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("i", "<CR>", "v:lua.completions()", {expr = true})
|
vim.api.nvim_set_keymap("i", "<CR>", "v:lua.completions()", {expr = true})
|
||||||
|
|
||||||
|
local g = vim.g
|
||||||
|
|
||||||
|
-- speeden up compe
|
||||||
|
g.loaded_compe_calc = 0
|
||||||
|
g.loaded_compe_emoji = 0
|
||||||
|
|
||||||
|
g.loaded_compe_luasnip = 0
|
||||||
|
g.loaded_compe_nvim_lua = 0
|
||||||
|
|
||||||
|
g.loaded_compe_path = 0
|
||||||
|
g.loaded_compe_spell = 0
|
||||||
|
g.loaded_compe_tags = 0
|
||||||
|
g.loaded_compe_treesitter = 0
|
||||||
|
|
||||||
|
g.loaded_compe_snippets_nvim = 0
|
||||||
|
|
||||||
|
g.loaded_compe_ultisnips = 0
|
||||||
|
g.loaded_compe_vim_lsc = 0
|
||||||
|
g.loaded_compe_vim_lsp = 0
|
||||||
|
g.loaded_compe_omni = 0
|
||||||
|
|
Loading…
Reference in a new issue