mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 19:47:47 +00:00
Disable lua_ls formatting in favor of stylua
This commit is contained in:
parent
ad47f57d68
commit
29d9b7960d
@ -309,7 +309,21 @@ function M.config_lsp()
|
||||
|
||||
-- Setup each server with default config
|
||||
vim.tbl_map(function(server)
|
||||
if server == "lua_ls" then
|
||||
-- Disable formatting with lua_ls because I use luacheck
|
||||
local config = vim.tbl_extend("force", default_setup, {
|
||||
settings = {
|
||||
Lua = {
|
||||
format = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
lsp_config[server].setup(config)
|
||||
else
|
||||
lsp_config[server].setup(default_setup)
|
||||
end
|
||||
end, needs_setup)
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user