mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
28 lines
609 B
Lua
28 lines
609 B
Lua
--- Available LSP goes here
|
|
--- Check https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md
|
|
--- for available server and name
|
|
local M = {}
|
|
M.servers = {
|
|
"clangd", -- C/C++
|
|
-- "cmake", -- CMake
|
|
"eslint", -- JavaScript
|
|
"html", -- HTML
|
|
"lua_ls", -- Lua
|
|
"omnisharp", -- C# & F#
|
|
"powershell_es", -- PowerShell
|
|
"pyright", -- Python
|
|
"vimls", -- vimscript
|
|
}
|
|
|
|
M.server_config = {
|
|
lua_ls = {
|
|
capabilities = vim.lsp.protocol.make_client_capabilities(),
|
|
settings = {
|
|
Lua = {
|
|
diagnostics = { globals = { "vim" } },
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
return M
|