Unused Plugins removed, streamlined environment
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user