1
0
Fork 0

lsp_lines: initial config

This commit is contained in:
Felipe 2023-09-19 22:44:54 -03:00
parent 6fc4e680de
commit 38ef5ea7a7
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored
View file

@ -106,3 +106,6 @@
[submodule "pack/general/start/neotest-rust"] [submodule "pack/general/start/neotest-rust"]
path = pack/general/start/neotest-rust path = pack/general/start/neotest-rust
url = https://github.com/rouge8/neotest-rust url = https://github.com/rouge8/neotest-rust
[submodule "pack/general/start/lsp_lines.nvim"]
path = pack/general/start/lsp_lines.nvim
url = https://git.sr.ht/~whynothugo/lsp_lines.nvim

View file

@ -571,3 +571,10 @@ 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>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>ts', function() neotest.run.stop() end)
vim.keymap.set('n', '<leader>tt', function() neotest.summary.toggle() end) vim.keymap.set('n', '<leader>tt', function() neotest.summary.toggle() end)
---- lsp_lines
require("lsp_lines").setup()
-- Disable virtual_text since it's redundant due to lsp_lines.
vim.diagnostic.config({
virtual_text = false,
virtual_lines = { only_current_line = true },
})

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