clean compe config since it supports lazy loading

This commit is contained in:
siduck76 2021-05-27 15:20:30 +05:30
parent c203b56a3f
commit 355c2cb33c

View File

@ -14,16 +14,9 @@ require "compe".setup {
max_menu_width = 100, max_menu_width = 100,
documentation = true, documentation = true,
source = { source = {
path = true,
buffer = {kind = "", true}, buffer = {kind = "", 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
nvim_lua = true,
spell = true,
tags = true,
snippets_nvim = true,
treesitter = true
} }
} }
@ -79,24 +72,3 @@ 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