Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/nvchad/.config/nvim/lua/configs/lspconfig.lua

41 lines
888 B

local on_attach = require("nvchad.configs.lspconfig").on_attach
local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
6 months ago
local lspconfig = require("lspconfig")
2 months ago
local servers = {
"html",
"cssls",
5 days ago
"ts_ls",
2 months ago
"clangd",
"rust_analyzer",
"vhdl_ls",
"hls",
"tailwindcss",
"pyright",
"julials",
}
-- lsps with default config
for _, lsp in ipairs(servers) do
6 months ago
lspconfig[lsp].setup({
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
})
end
5 days ago
lspconfig.metals.setup({
settings = {
showImplicitArguments = true,
excludedPackages = { "akka.actor.typed.javadsl", "com.github.swagger.akka.javadsl" },
},
init_options = {
5 days ago
statusBarProvider = "on",
5 days ago
},
-- on_attach = function(client, bufnr)
-- -- Add your keybindings and other on_attach functions here
-- end,
})