feat: add ellipsis replacement functionality on InsertLeave

This commit is contained in:
2024-10-08 04:25:31 -04:00
parent 8e12606aed
commit b443e6ff91
2 changed files with 23 additions and 1 deletions
+6
View File
@@ -60,3 +60,9 @@ end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Overrides ━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for overrides
add_keymap(data.keys.overrides)
-- Replace '...' with '…' (ellipsis) on InsertLeave
data.func.setup_replace_ellipsis(true)
-- Search selected text in visual mode
add_keymap("/", "*", "Search selected text", "v")
+17 -1
View File
@@ -799,7 +799,16 @@ M.indentor = {
M.lazygit = {
{ -- LazyGit
"<leader>lg",
"<cmd>LazyGit<cr>",
function()
require("data.func").open_lazygit_popup()
end,
desc = "LazyGit",
},
{ -- LazyGit
"<leader>gg",
function()
require("data.func").open_lazygit_popup()
end,
desc = "LazyGit",
},
}
@@ -853,6 +862,13 @@ M.misc = {
end,
desc = "Yank Line-text",
},
{ -- Yank and trim selection
lhs = "<leader>y",
rhs = function()
require("data.func").trim_yank()
end,
desc = "Yank and trim selection",
},
{ -- Hardmode
lhs = "<leader>uH",
rhs = function()