Archived
0
0
Fork 0

added lsp virtual lines and undotree

This commit is contained in:
Daryl Ronningen 2022-07-12 10:07:02 -07:00
parent 6b7f8c264f
commit f782be7854
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 18 additions and 0 deletions

View file

@ -92,6 +92,9 @@ keymap("n", "<leader>sw", ":lua require('spectre').open_visual({select_word=true
keymap("n", "<leader>s", ":lua require('spectre').open_visual()<CR>", opts)
keymap("n", "<leader>sp", ":lua require('spectre').open_file_search()<CR>", opts)
-- UndoTree
keymap("n", "<leader>u", ":UndotreeToggle<CR>", opts)
-- Insert --
-- Visual --

View file

@ -3,3 +3,4 @@ require("user.lsp.mason")
require("user.lsp.nullls")
require("user.lsp.signature")
require("user.lsp.lspsaga")
require("user.lsp.virtuallines")

View file

@ -0,0 +1,10 @@
local status_ok, lines = pcall(require, "lsp_lines")
if not status_ok then
return
end
lines.register_lsp_virtual_lines()
vim.diagnostic.config({
virtual_text = false,
})

View file

@ -73,6 +73,7 @@ return packer.startup(function(use)
use("folke/trouble.nvim")
use("onsails/lspkind.nvim")
use("glepnir/lspsaga.nvim")
use("Maan2003/lsp_lines.nvim")
-- Telescope
use("nvim-telescope/telescope.nvim")
@ -155,6 +156,9 @@ return packer.startup(function(use)
-- UI
use("stevearc/dressing.nvim")
-- Undo Tree
use("mbbill/undotree")
if PACKER_BOOTSTRAP then
require("packer").sync()
end