Unused Plugins removed, streamlined environment

This commit is contained in:
Thomas Naderer
2025-01-28 13:42:43 +01:00
parent 856c2fa7a1
commit 0453e7fef6
6 changed files with 148 additions and 78 deletions

View File

@@ -104,8 +104,23 @@ keymap("c", "w!!", [[w !sudo tee %]], opt)
-- diff since last save
keymap("n", "<leader>df", [[:w !diff % -<cr>]], opt)
keymap("x", "<leader>df", [[:w !diff % -<cr>]], opt)
keymap("n", "Y", '"+y', opt)
keymap("n", "<leader>y", '"+y', opt)
keymap("x", "Y", '"+y', opt)
keymap("n", "<leader>y", ':Yazi<cr>', opt)
-- place this in one of your configuration file(s)
local hop = require('hop')
local directions = require('hop.hint').HintDirection
vim.keymap.set('', 'f', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true })
end, {remap=true})
vim.keymap.set('', 'F', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true })
end, {remap=true})
vim.keymap.set('', 't', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true, hint_offset = -1 })
end, {remap=true})
vim.keymap.set('', 'T', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })
end, {remap=true})