config function for rustaceanvim
This commit is contained in:
parent
563f74965d
commit
cbeffa9b6d
@ -1,4 +1,15 @@
|
||||
return {
|
||||
'mrcjkb/rustaceanvim',
|
||||
ft = { 'rust' },
|
||||
config = function()
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
on_attach = function(client, bufnr)
|
||||
local options = { noremap = true, silent = false, buffer = bufnr }
|
||||
vim.keymap.set('n', '<space>y', function() vim.cmd.RustLsp { 'hover', 'actions' } end,
|
||||
vim.tbl_extend('error', options, { desc = 'Hover' }))
|
||||
end
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user