nvchad stuff

master
Elias Almqvist 4 months ago
parent 8246a7a78d
commit d11040da4c
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 30
      nvchad/.config/nvim/lua/configs/lspconfig.lua

@ -2,21 +2,29 @@ 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 lspconfig = require("lspconfig")
local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_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,
}
lspconfig[lsp].setup({
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
})
end
-- typescript
lspconfig.tsserver.setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
}
-- lspconfig.tsserver.setup({
-- on_attach = on_attach,
-- on_init = on_init,
-- capabilities = capabilities,
-- })
-- Haskell
-- lspconfig.hls.setup({
-- on_attach = on_attach,
-- on_init = on_init,
-- capabilities = capabilities,
-- filetypes = { "haskell", "lhaskell", "cabal" },
-- })

Loading…
Cancel
Save