Feat: add rustaceanvim plugin
This commit is contained in:
parent
71e9c28bf7
commit
a7409f5dbf
2 changed files with 75 additions and 0 deletions
35
lua/custom/plugins/rustacea.lua
Normal file
35
lua/custom/plugins/rustacea.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
return {
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^4',
|
||||
dependencies = {
|
||||
{
|
||||
'lvimuser/lsp-inlayhints.nvim',
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
ft = { 'rust' },
|
||||
keys = {
|
||||
{
|
||||
'<leader>dr',
|
||||
'<cmd>RustLsp debuggables<cr>',
|
||||
'Rust debug',
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.g.rustaceanvim = {
|
||||
inlay_hints = {
|
||||
highlight = 'NonText',
|
||||
},
|
||||
tools = {
|
||||
hover_actions = {
|
||||
auto_focus = true,
|
||||
},
|
||||
},
|
||||
server = {
|
||||
on_attach = function(client, bufnr)
|
||||
require('lsp-inlayhints').on_attach(client, bufnr)
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue