1
0
Fork 0

neotest: add keymaps and rust config

This commit is contained in:
Felipe 2023-08-20 00:49:23 -04:00
parent ec8f043853
commit a042adb859
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk
4 changed files with 20 additions and 0 deletions

6
.gitmodules vendored
View file

@ -100,3 +100,9 @@
[submodule "pack/general/start/crates.nvim"]
path = pack/general/start/crates.nvim
url = https://github.com/Saecki/crates.nvim
[submodule "pack/general/start/neotest"]
path = pack/general/start/neotest
url = https://github.com/nvim-neotest/neotest
[submodule "pack/general/start/neotest-rust"]
path = pack/general/start/neotest-rust
url = https://github.com/rouge8/neotest-rust

View file

@ -560,3 +560,15 @@ vim.keymap.set('n', '<leader>cu', crates.update_crate)
vim.keymap.set('v', '<leader>cu', crates.update_crates)
vim.keymap.set('n', '<leader>ca', crates.update_all_crates)
vim.keymap.set('n', '<leader>cD', crates.open_documentation)
---- neotest
local neotest = require("neotest")
neotest.setup({
adapters = {
require("neotest-rust")
}
})
vim.keymap.set('n', '<leader>tr', function() neotest.run.run() end)
vim.keymap.set('n', '<leader>tf', function() neotest.run.run(vim.fn.expand("%")) end)
vim.keymap.set('n', '<leader>ts', function() neotest.run.stop() end)
vim.keymap.set('n', '<leader>tt', function() neotest.summary.toggle() end)

@ -0,0 +1 @@
Subproject commit bec7be0f13ee19c85561943fc5f7b8daa4f4d465

@ -0,0 +1 @@
Subproject commit 95161da0fbe0570395a938927b654931a82caecb