From d11040da4c3aef98533e43e65e48c6f133de82a7 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Tue, 6 Aug 2024 13:35:52 -0700 Subject: [PATCH] nvchad stuff --- nvchad/.config/nvim/lua/configs/lspconfig.lua | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/nvchad/.config/nvim/lua/configs/lspconfig.lua b/nvchad/.config/nvim/lua/configs/lspconfig.lua index 95c3a03..8ff6b13 100644 --- a/nvchad/.config/nvim/lua/configs/lspconfig.lua +++ b/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" }, +-- })