refractor(nvim): Separate config files

This commit is contained in:
js0ny 2024-11-28 23:03:44 +00:00
parent 5455e68b8c
commit 2a76a6fbe4
24 changed files with 326 additions and 157 deletions

View file

@ -1,7 +1,8 @@
--- Available LSP goes here
--- Check https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md
--- for available server and name
local servers = {
local M = {}
M.servers = {
"arduino_language_server", -- Arduino
"bashls", -- Bash
"clangd", -- C/C++
@ -19,4 +20,15 @@ local servers = {
"vimls", -- vimscript
}
return servers
M.server_config = {
lua_ls = {
capabilities = vim.lsp.protocol.make_client_capabilities(),
settings = {
Lua = {
diagnostics = { globals = { "vim" } },
},
},
},
}
return M