♻️ refactor(nvim): deleted a lot of stuff and added a new plugin at the fold extra
This commit is contained in:
parent
6d0523925a
commit
a59beae31a
3 changed files with 7 additions and 54 deletions
|
@ -123,7 +123,7 @@
|
|||
"telescope-luasnip.nvim": { "branch": "master", "commit": "2ef7da3a363890686dbaad18ddbf59177cfe4f78" },
|
||||
"telescope-undo.nvim": { "branch": "main", "commit": "d3afc1c105535a90caec092ce27a113f77ba7b84" },
|
||||
"telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "8b56e9bb2d0b8750c2f8cd4efe9738e3c066889b" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "87e92ea31b2b61d45ad044cf7b2d9b66dad2a618" },
|
||||
"text-case.nvim": { "branch": "main", "commit": "51fba4b76ff39e2a3264a7201be3c9310cfcdb58" },
|
||||
"theme-loader.nvim": { "branch": "master", "commit": "ad8774ec8267a447d469b4e6603b43f49b946e53" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
|
||||
|
|
|
@ -89,4 +89,3 @@
|
|||
},
|
||||
"version": 2
|
||||
}
|
||||
|
||||
|
|
|
@ -1,48 +1,4 @@
|
|||
return {
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
opts = {
|
||||
signs = {
|
||||
add = { text = "┃" },
|
||||
change = { text = "┃" },
|
||||
delete = { text = "" },
|
||||
topdelete = { text = "" },
|
||||
changedelete = { text = "┃" },
|
||||
untracked = { text = "┇" },
|
||||
},
|
||||
signcolumn = true,
|
||||
numhl = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
init = function()
|
||||
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
||||
keys[#keys + 1] = { "K", false }
|
||||
end,
|
||||
},
|
||||
{ -- better statuscolumn
|
||||
"luukvbaal/statuscol.nvim",
|
||||
event = { "LazyFile" },
|
||||
opts = function()
|
||||
local builtin = require("statuscol.builtin")
|
||||
return {
|
||||
ft_ignore = { "neo-tree", "neo-tree-popup", "alpha", "lazy", "mason" },
|
||||
segments = {
|
||||
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
|
||||
{
|
||||
sign = { name = { "Diagnostic*" }, text = { ".*" }, maxwidth = 1, colwidth = 1, auto = true },
|
||||
click = "v:lua.ScSa",
|
||||
},
|
||||
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||
},
|
||||
}
|
||||
end,
|
||||
init = function() end,
|
||||
config = function(_, opts)
|
||||
require("statuscol").setup(opts)
|
||||
end,
|
||||
},
|
||||
{ -- better fold
|
||||
"kevinhwang91/nvim-ufo",
|
||||
event = { "LazyFile" },
|
||||
|
@ -103,13 +59,11 @@ return {
|
|||
end,
|
||||
config = function(_, opts)
|
||||
require("ufo").setup(opts)
|
||||
|
||||
local map = require("lazyvim.util").safe_keymap_set
|
||||
map("n", "K", function()
|
||||
if not require("ufo").peekFoldedLinesUnderCursor() then
|
||||
vim.lsp.buf.hover()
|
||||
end
|
||||
end, { desc = "Peek folded lines under cursor or hover" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"chrisgrieser/nvim-origami",
|
||||
event = { "LazyFile" },
|
||||
opts = {},
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue