fix to prevent string config (#292)

This commit is contained in:
Kodai Kabasawa 2023-10-29 21:46:24 +09:00 committed by GitHub
parent bedf65e668
commit 7632117666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,10 +62,6 @@ local has_lspinst = false
local has_mason = false
if config.lsp.disable_lsp == 'all' then
config.lsp.disable_lsp = servers
end
local ng_default_cfg = {
on_attach = on_attach,
flags = { allow_incremental_sync = true, debounce_text_changes = 1000 },
@ -522,6 +518,10 @@ local ft_map = {
}
local function setup(user_opts)
if config.lsp.disable_lsp == 'all' then
config.lsp.disable_lsp = servers
end
user_opts = user_opts or {}
local bufnr = user_opts.bufnr or vim.api.nvim_get_current_buf()