🔧 Added rust tooling to nvim
This commit is contained in:
parent
676a132c1f
commit
2a35f267b6
3 changed files with 23 additions and 0 deletions
12
.config/nvim/after/plugin/rust-tools.lua
Normal file
12
.config/nvim/after/plugin/rust-tools.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
local rt = require("rust-tools")
|
||||||
|
|
||||||
|
rt.setup({
|
||||||
|
server = {
|
||||||
|
on_attach = function(_, bufnr)
|
||||||
|
-- Hover actions
|
||||||
|
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
||||||
|
-- Code action groups
|
||||||
|
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
@ -103,6 +103,9 @@ return require("packer").startup(function(use)
|
||||||
-- golang
|
-- golang
|
||||||
use("ray-x/go.nvim")
|
use("ray-x/go.nvim")
|
||||||
use("ray-x/guihua.lua")
|
use("ray-x/guihua.lua")
|
||||||
|
-- rustlang
|
||||||
|
use("rust-lang/rust.vim")
|
||||||
|
use("simrat39/rust-tools.nvim")
|
||||||
-- code snippet screenshots
|
-- code snippet screenshots
|
||||||
-- capture code snippets using :Silicon,
|
-- capture code snippets using :Silicon,
|
||||||
-- in Visual mode highlight then enter command
|
-- in Visual mode highlight then enter command
|
||||||
|
|
|
||||||
|
|
@ -489,3 +489,11 @@ doas pacman -S lldb
|
||||||
03/26/2024
|
03/26/2024
|
||||||
Install gcolor2 (gcolor3 breaks due to dependency hell, add gcolor3 to IgnorePkg for now)
|
Install gcolor2 (gcolor3 breaks due to dependency hell, add gcolor3 to IgnorePkg for now)
|
||||||
paru gcolor2
|
paru gcolor2
|
||||||
|
|
||||||
|
03/29/2024
|
||||||
|
Install rust-analyzer
|
||||||
|
doas pacman -S rust-analyzer
|
||||||
|
|
||||||
|
03/30/2024
|
||||||
|
Install sox (cli audio editor)
|
||||||
|
doas pacman -S sox
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue