From dfd2ea5f849a5c97c439207564099d780251678f Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Wed, 18 Feb 2026 08:39:52 +0100 Subject: [PATCH] [LSP] Add language server --- nvim/lua/plugins/lsp/ls/c.lua | 6 ------ nvim/lua/plugins/lsp/ls/haskell.lua | 17 +++++++++++++++++ nvim/lua/plugins/lsp/lspconfig.lua | 1 + nvim/lua/plugins/lsp/mason.lua | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 nvim/lua/plugins/lsp/ls/haskell.lua diff --git a/nvim/lua/plugins/lsp/ls/c.lua b/nvim/lua/plugins/lsp/ls/c.lua index b6bbaaf..7734c53 100644 --- a/nvim/lua/plugins/lsp/ls/c.lua +++ b/nvim/lua/plugins/lsp/ls/c.lua @@ -16,12 +16,6 @@ lsp.config("clangd", { on_attach = opts.on_attach_no_formatting, }) -lsp.config("cmake", { - capabilities = opts.capabilities, - on_attach = opts.on_attach, -}) - -- ── Enable configs ─────────────────────────────────────────────── local enable = vim.lsp.enable enable("clangd") -enable("cmake") diff --git a/nvim/lua/plugins/lsp/ls/haskell.lua b/nvim/lua/plugins/lsp/ls/haskell.lua new file mode 100644 index 0000000..8e3e924 --- /dev/null +++ b/nvim/lua/plugins/lsp/ls/haskell.lua @@ -0,0 +1,17 @@ +-- ┌ ┐ +-- │ Haskell │ +-- └ ┘ +local lsp = vim.lsp + +local capabilities = require("lsp-options").capabilities +local on_attach = require("lsp-options").on_attach + +lsp.config("hls", { + capabilities = capabilities, + on_attach = on_attach, +}) + + +-- ── Enable configs ─────────────────────────────────────────────── +local enable = vim.lsp.enable +enable("hls") diff --git a/nvim/lua/plugins/lsp/lspconfig.lua b/nvim/lua/plugins/lsp/lspconfig.lua index 9794444..562e9b4 100755 --- a/nvim/lua/plugins/lsp/lspconfig.lua +++ b/nvim/lua/plugins/lsp/lspconfig.lua @@ -28,6 +28,7 @@ return { require("plugins.lsp.ls.docker") require("plugins.lsp.ls.gh-actions") require("plugins.lsp.ls.go") + require("plugins.lsp.ls.haskell") require("plugins.lsp.ls.hypr") require("plugins.lsp.ls.low-level") require("plugins.lsp.ls.luals") diff --git a/nvim/lua/plugins/lsp/mason.lua b/nvim/lua/plugins/lsp/mason.lua index 80c3c7a..5332e24 100755 --- a/nvim/lua/plugins/lsp/mason.lua +++ b/nvim/lua/plugins/lsp/mason.lua @@ -28,12 +28,12 @@ return { "asm_lsp", "bashls", "clangd", - "cmake", "cssls", "docker_language_server", "gh_actions_ls", "gopls", "html", + "hls", "hyprls", "jdtls", "jsonls",