ok fix
This commit is contained in:
parent
ceadebd22d
commit
1b9467751a
1 changed files with 3 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -508,9 +508,9 @@ require('lazy').setup({
|
|||
|
||||
-- You can add other tools here that you want Mason to install
|
||||
-- for you, so that they are available from within Neovim.
|
||||
local ensure_installed = vim.tbl_keys(servers)
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
'stylua',
|
||||
'stylua', -- Used to format lua code
|
||||
})
|
||||
|
||||
-- Ensure the servers above are installed
|
||||
|
@ -524,7 +524,7 @@ require('lazy').setup({
|
|||
cmd = server.cmd,
|
||||
settings = server.settings,
|
||||
filetypes = server.filetypes,
|
||||
capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities),
|
||||
capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}),
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue