chore(nvim): remove luals

main
sudo pacman -Syu 2023-08-24 15:25:20 +07:00
parent f19bfaec9a
commit 779ce40080
1 changed files with 2 additions and 24 deletions

View File

@ -390,9 +390,10 @@ require("lazy").setup({
"go", "go",
"json", "json",
"lua", "lua",
"proto",
"sql",
"toml", "toml",
"yaml", "yaml",
"proto",
}, },
}) })
end, end,
@ -459,29 +460,6 @@ require("lazy").setup({
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bufls -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bufls
lspconfig.bufls.setup({}) lspconfig.bufls.setup({})
-- Lua
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls
lspconfig.lua_ls.setup({
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
diagnostics = {
globals = { "vim" },
},
format = {
-- Prefer Neoformat with stylua
enable = false,
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
checkThirdParty = false,
},
},
},
})
-- General -- General
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev) vim.keymap.set("n", "[d", vim.diagnostic.goto_prev)
vim.keymap.set("n", "]d", vim.diagnostic.goto_next) vim.keymap.set("n", "]d", vim.diagnostic.goto_next)