Haskell stuff for NvChad

laptop
Elias Almqvist 10 months ago
parent 288c21d5b6
commit 149290412e
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 3
      nvchad/.config/nvim/lua/custom/configs/conform.lua
  2. 8
      nvchad/.config/nvim/lua/custom/configs/lspconfig.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,16 +1,16 @@
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" } local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "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
-- --

Loading…
Cancel
Save