chore: Better hls config
This commit is contained in:
parent
26570245fb
commit
eecb0a3ff1
1 changed files with 8 additions and 3 deletions
|
@ -2,8 +2,7 @@ local mason_lspconfig = require "mason-lspconfig"
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
|
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
ensure_installed = { "lua_ls", "texlab", "hls", "yamlls" },
|
automatic_installation = false
|
||||||
automatic_installation = true
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,6 +60,13 @@ mason_lspconfig.setup_handlers {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require('lspconfig')['hls'].setup {
|
||||||
|
filetypes = { 'haskell', 'lhaskell', 'cabal' },
|
||||||
|
on_attach = on_attach,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
}
|
||||||
|
|
||||||
require("rust-tools").setup({
|
require("rust-tools").setup({
|
||||||
server = {
|
server = {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
@ -79,4 +85,3 @@ require("rust-tools").setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue