Skip to content

Commit 822462b

Browse files
committed
cfg: rustaceanvim
1 parent bdced41 commit 822462b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

lua/aceforeverd/plugins/init.lua

+20-1
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,30 @@ M.plugin_list = {
225225
{
226226
'mrcjkb/rustaceanvim',
227227
ft = { 'rust' },
228+
init = function()
229+
vim.g.rustaceanvim = {
230+
-- tools = {}
231+
server = {
232+
default_settings = {
233+
-- rust-analyzer language server configuration
234+
-- ref https://rust-analyzer.github.io/manual.html#configuration
235+
['rust-analyzer'] = {
236+
cargo = {},
237+
procMacro = {
238+
enable = true
239+
}
240+
},
241+
},
242+
},
243+
-- DAP configuration
244+
-- dap = {},
245+
}
246+
end
228247
},
229248

230249
{
231250
'mrcjkb/haskell-tools.nvim',
232-
ft = { 'haskell', 'lhaskell', 'cabal', 'cabalproject' },
251+
ft = { 'haskell', 'lhaskell', 'cabal', 'cabalproject' },
233252
},
234253

235254
{ 'ray-x/guihua.lua', build = 'cd lua/fzy && make', lazy = true },

0 commit comments

Comments
 (0)