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