mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 19:28:59 +02:00
refactor: moved gitsigns and illuminate from coding to editor
This commit is contained in:
parent
75fb7e1e1e
commit
c3eda447dd
2 changed files with 41 additions and 41 deletions
|
@ -1,21 +1,5 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
-- git signs
|
|
||||||
{
|
|
||||||
"lewis6991/gitsigns.nvim",
|
|
||||||
event = "BufReadPre",
|
|
||||||
config = {
|
|
||||||
signs = {
|
|
||||||
add = { text = "▎" },
|
|
||||||
change = { text = "▎" },
|
|
||||||
delete = { text = "契" },
|
|
||||||
topdelete = { text = "契" },
|
|
||||||
changedelete = { text = "▎" },
|
|
||||||
untracked = { text = "▎" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- snippets
|
-- snippets
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
@ -96,29 +80,4 @@ return {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- references
|
|
||||||
{
|
|
||||||
"RRethy/vim-illuminate",
|
|
||||||
event = "BufReadPost",
|
|
||||||
config = function()
|
|
||||||
require("illuminate").configure({ delay = 200 })
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"]]",
|
|
||||||
function()
|
|
||||||
require("illuminate").goto_next_reference(false)
|
|
||||||
end,
|
|
||||||
desc = "Next Reference",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"[[",
|
|
||||||
function()
|
|
||||||
require("illuminate").goto_prev_reference(false)
|
|
||||||
end,
|
|
||||||
desc = "Prev Reference",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,4 +32,45 @@ return {
|
||||||
key_labels = { ["<leader>"] = "SPC" },
|
key_labels = { ["<leader>"] = "SPC" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- git signs
|
||||||
|
{
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
event = "BufReadPre",
|
||||||
|
config = {
|
||||||
|
signs = {
|
||||||
|
add = { text = "▎" },
|
||||||
|
change = { text = "▎" },
|
||||||
|
delete = { text = "契" },
|
||||||
|
topdelete = { text = "契" },
|
||||||
|
changedelete = { text = "▎" },
|
||||||
|
untracked = { text = "▎" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- references
|
||||||
|
{
|
||||||
|
"RRethy/vim-illuminate",
|
||||||
|
event = "BufReadPost",
|
||||||
|
config = function()
|
||||||
|
require("illuminate").configure({ delay = 200 })
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"]]",
|
||||||
|
function()
|
||||||
|
require("illuminate").goto_next_reference(false)
|
||||||
|
end,
|
||||||
|
desc = "Next Reference",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"[[",
|
||||||
|
function()
|
||||||
|
require("illuminate").goto_prev_reference(false)
|
||||||
|
end,
|
||||||
|
desc = "Prev Reference",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue