reduce startuptime for compe

This commit is contained in:
siduck76 2021-05-15 11:20:40 +05:30
parent 57b9c3f5c6
commit b61ead83c1
1 changed files with 22 additions and 1 deletions

View File

@ -15,7 +15,7 @@ require "compe".setup {
documentation = true,
source = {
path = true,
buffer = {kind = "" , true},
buffer = {kind = "", true},
calc = true,
vsnip = {kind = ""}, --replace to what sign you prefer
nvim_lsp = true,
@ -79,3 +79,24 @@ function _G.completions()
end
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