fix to prevent string config (#292)

pull/293/head
Kodai Kabasawa 6 months ago committed by GitHub
parent bedf65e668
commit 7632117666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save