[1/4] Refactor: plugins: Add seperate config for each plugins

first commit of Refactor

handle require errors

move config from other places to proper files

don't create a pseudo config function for no reason

https://github.com/siduck76/NvChad/pull/156#issuecomment-881453546
This commit is contained in:
Akianonymus committed 2021-07-16 19:36:54 +05:30
1 parent 0d7345bc44
commit d16ffabcfd
19 files changed
+847 -725

No files matched your search

+28 -35
View File
@@ -1,38 +1,31 @@
local M = {}
M.config = function()
require "compe".setup {
enabled = true,
autocomplete = true,
debug = false,
min_length = 1,
preselect = "enable",
throttle_time = 80,
source_timeout = 200,
incomplete_delay = 400,
max_abbr_width = 100,
max_kind_width = 100,
max_menu_width = 100,
documentation = true,
source = {
buffer = {kind = "﬘", true},
luasnip = {kind = "﬌", true},
nvim_lsp = true,
nvim_lua = true
}
}
end
M.snippets = function()
local ls = require("luasnip")
ls.config.set_config(
{
history = true,
updateevents = "TextChanged,TextChangedI"
}
local compe
if
not pcall(
function()
compe = require "compe"
end
)
require("luasnip/loaders/from_vscode").load()
then
return
end
return M
compe.setup {
enabled = true,
autocomplete = true,
debug = false,
min_length = 1,
preselect = "enable",
throttle_time = 80,
source_timeout = 200,
incomplete_delay = 400,
max_abbr_width = 100,
max_kind_width = 100,
max_menu_width = 100,
documentation = true,
source = {
buffer = {kind = "﬘", true},
luasnip = {kind = "﬌", true},
nvim_lsp = true,
nvim_lua = true
}
}