lsp_lines: initial config
This commit is contained in:
parent
6fc4e680de
commit
38ef5ea7a7
3 changed files with 11 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
7
init.lua
7
init.lua
|
|
@ -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 },
|
||||||
|
})
|
||||||
|
|
|
||||||
1
pack/general/start/lsp_lines.nvim
Submodule
1
pack/general/start/lsp_lines.nvim
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f53af96d4789eef39a082dbcce078d2bfc384ece
|
||||||
Loading…
Add table
Reference in a new issue