diff --git a/nvchad/.config/nvim/lua/custom/configs/conform.lua b/nvchad/.config/nvim/lua/custom/configs/conform.lua index 17e6f0b..d590c66 100644 --- a/nvchad/.config/nvim/lua/custom/configs/conform.lua +++ b/nvchad/.config/nvim/lua/custom/configs/conform.lua @@ -18,6 +18,9 @@ local options = { python = { "black" }, sh = { "shfmt" }, + + -- Joke langs + haskell = { "stylish-haskell" } }, -- adding same formatter for multiple filetypes can look too much work for some diff --git a/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua b/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua index 1cb23d2..04a0359 100644 --- a/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua +++ b/nvchad/.config/nvim/lua/custom/configs/lspconfig.lua @@ -1,18 +1,18 @@ local on_attach = require("plugins.configs.lspconfig").on_attach 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 -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 - lspconfig[lsp].setup { - on_attach = on_attach, - capabilities = capabilities, - } + lspconfig[lsp].setup({ + on_attach = on_attach, + capabilities = capabilities, + }) end --- +-- -- lspconfig.pyright.setup { blabla} -- diff --git a/nvchad/.config/nvim/lua/custom/configs/overrides.lua b/nvchad/.config/nvim/lua/custom/configs/overrides.lua index 51b9ea3..90f1e74 100644 --- a/nvchad/.config/nvim/lua/custom/configs/overrides.lua +++ b/nvchad/.config/nvim/lua/custom/configs/overrides.lua @@ -13,6 +13,7 @@ M.treesitter = { "markdown", "markdown_inline", "prisma", + "haskell", }, indent = { enable = true, @@ -38,6 +39,9 @@ M.mason = { -- c/cpp stuff "clangd", "clang-format", + + -- Fun/joke langs + "hls", }, }