added lsp virtual lines and undotree
This commit is contained in:
parent
6b7f8c264f
commit
f782be7854
4 changed files with 18 additions and 0 deletions
|
@ -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 --
|
||||
|
|
|
@ -3,3 +3,4 @@ require("user.lsp.mason")
|
|||
require("user.lsp.nullls")
|
||||
require("user.lsp.signature")
|
||||
require("user.lsp.lspsaga")
|
||||
require("user.lsp.virtuallines")
|
||||
|
|
10
lua/user/lsp/virtuallines.lua
Normal file
10
lua/user/lsp/virtuallines.lua
Normal 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,
|
||||
})
|
|
@ -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
|
||||
|
|
Reference in a new issue