laptop
Elias Almqvist 10 months ago
commit 4a569492b0
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 3
      nvchad/.config/nvim/lua/custom/configs/conform.lua
  2. 14
      nvchad/.config/nvim/lua/custom/configs/lspconfig.lua
  3. 4
      nvchad/.config/nvim/lua/custom/configs/overrides.lua

@ -18,6 +18,9 @@ local options = {
python = { "black" }, python = { "black" },
sh = { "shfmt" }, sh = { "shfmt" },
-- Joke langs
haskell = { "stylish-haskell" }
}, },
-- adding same formatter for multiple filetypes can look too much work for some -- adding same formatter for multiple filetypes can look too much work for some

@ -1,18 +1,18 @@
local on_attach = require("plugins.configs.lspconfig").on_attach local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig" local lspconfig = require("lspconfig")
-- if you just want default config for the servers then put them in a table -- if you just want default config for the servers then put them in a table
local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "bashls", "prismals", "pyright" } local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "bashls", "prismals", "pyright", "hls" }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
} })
end end
-- --
-- lspconfig.pyright.setup { blabla} -- lspconfig.pyright.setup { blabla}
-- --

@ -13,6 +13,7 @@ M.treesitter = {
"markdown", "markdown",
"markdown_inline", "markdown_inline",
"prisma", "prisma",
"haskell",
}, },
indent = { indent = {
enable = true, enable = true,
@ -38,6 +39,9 @@ M.mason = {
-- c/cpp stuff -- c/cpp stuff
"clangd", "clangd",
"clang-format", "clang-format",
-- Fun/joke langs
"hls",
}, },
} }

Loading…
Cancel
Save