Use ghcup instead of asdf for haskell
parent
63e4ff19d4
commit
8f9f09006d
|
@ -42,3 +42,4 @@ eval (asdf exec direnv hook fish | source)
|
|||
function direnv
|
||||
asdf exec direnv "$argv"
|
||||
end
|
||||
set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin $PATH /home/ensar/.ghcup/bin # ghcup-env
|
||||
|
|
|
@ -8,7 +8,7 @@ local common_config = require("lsp.server_config")
|
|||
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
|
||||
-- Lsp default language servers
|
||||
local servers = { "bashls", "clangd", "cucumber_language_server", "crystalline", "dockerls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "mint", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" }
|
||||
local servers = { "bashls", "clangd", "cucumber_language_server", "crystalline", "dockerls", "hls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "mint", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = common_config.on_attach,
|
||||
|
@ -42,14 +42,6 @@ lspconfig.omnisharp.setup {
|
|||
capabilities = capabilities
|
||||
}
|
||||
|
||||
-- Haskell LS
|
||||
local hls_bin = vim.fn.glob('$HOME') .. "/lsp/haskell/hls/haskell-language-server-wrapper"
|
||||
lspconfig.hls.setup {
|
||||
cmd = { hls_bin, "--lsp" };
|
||||
on_attach = common_config.on_attach;
|
||||
capabilities = capabilities
|
||||
}
|
||||
|
||||
-- Leminx (XML Language server)
|
||||
lspconfig.lemminx.setup {
|
||||
cmd = { "lemminx" };
|
||||
|
|
Loading…
Reference in New Issue