Skip to content

Commit cb0d6f4

Browse files
committed
rust/haskell: update tools
1 parent 2671dbb commit cb0d6f4

File tree

2 files changed

+6
-32
lines changed

2 files changed

+6
-32
lines changed

lua/aceforeverd/lsp/init.lua

-17
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,6 @@ function M.go()
6262
})
6363
end
6464

65-
function M.rust_analyzer()
66-
require('rust-tools').setup({
67-
server = require('aceforeverd.lsp.common').general_cfg,
68-
tools = {
69-
inlay_hints = {
70-
highlight = 'LspInlayHint',
71-
},
72-
},
73-
})
74-
end
75-
76-
function M.hls()
77-
require('haskell-tools').setup({
78-
hls = lsp_basic.general_cfg,
79-
})
80-
end
81-
8265
M.jdtls = require('aceforeverd.lsp.jdtls').setup
8366
M.metals = require('aceforeverd.lsp.metals').setup
8467

lua/aceforeverd/plugins/init.lua

+6-15
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@ M.plugin_list = {
223223
},
224224

225225
{
226-
'simrat39/rust-tools.nvim',
226+
'mrcjkb/rustaceanvim',
227227
ft = { 'rust' },
228-
config = function()
229-
require('aceforeverd.lsp').rust_analyzer()
230-
end,
228+
},
229+
230+
{
231+
'mrcjkb/haskell-tools.nvim',
232+
ft = { 'haskell', 'lhaskell', 'cabal', 'cabalproject' },
231233
},
232234

233235
{ 'ray-x/guihua.lua', build = 'cd lua/fzy && make', lazy = true },
@@ -335,17 +337,6 @@ M.plugin_list = {
335337
}
336338
},
337339

338-
{
339-
'mrcjkb/haskell-tools.nvim',
340-
config = function()
341-
require('aceforeverd.lsp').hls()
342-
end,
343-
dependencies = {
344-
'nvim-lua/plenary.nvim',
345-
},
346-
ft = { 'haskell', 'cabal' },
347-
},
348-
349340
{
350341
'onsails/lspkind.nvim',
351342
config = function()

0 commit comments

Comments
 (0)