From 9ad7ff47019d81d567ee693e3db4d310ac4b70ef Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 12 Mar 2024 21:17:09 +0300 Subject: [PATCH] Nvim : Add Haskell lsp. --- module/common/Nvim.nix | 5 +++-- module/common/nvim/plugin/lsp/Haskell.lua | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 module/common/nvim/plugin/lsp/Haskell.lua diff --git a/module/common/Nvim.nix b/module/common/Nvim.nix index fae7a54..4d7a369 100644 --- a/module/common/Nvim.nix +++ b/module/common/Nvim.nix @@ -48,8 +48,6 @@ in { "config/Search.lua" "config/Tab.lua" "plugin/Filetree.lua" - "plugin/lsp/Rust.lua" - "plugin/lsp/Tex.lua" "plugin/Gruvbox.lua" "plugin/Bufferline.lua" "plugin/Lualine.lua" @@ -65,6 +63,9 @@ in { "plugin/Treesitter.lua" "plugin/Fold.lua" "plugin/Ollama.lua" + "plugin/lsp/Haskell.lua" + "plugin/lsp/Rust.lua" + "plugin/lsp/Tex.lua" "key/Autocomplete.lua" "key/Buffer.lua" "key/Colorscheme.lua" diff --git a/module/common/nvim/plugin/lsp/Haskell.lua b/module/common/nvim/plugin/lsp/Haskell.lua new file mode 100644 index 0000000..fdab951 --- /dev/null +++ b/module/common/nvim/plugin/lsp/Haskell.lua @@ -0,0 +1,5 @@ +local lspconfig = require("lspconfig") + +lspconfig.hls.setup { + filetypes = { 'haskell', 'lhaskell', 'cabal' }, +}