mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-12-07 05:22:34 -06:00
Migrated all high-priority development configs to Dotter management: - Neovim: Lazy.nvim setup with hop and mini-surround plugins - Fish Shell: Complete config with Fisher plugins (done, z, sponge) - Zellij: Terminal multiplexer with vim-like keybindings - Htop: System monitor preferences - ASDF: Version manager configuration Templates created for git/gitconfig and fish/config.fish to handle machine-specific variables (git_name, git_email, brew_path). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
1.5 KiB
Lua
62 lines
1.5 KiB
Lua
|
|
return {
|
|
'smoka7/hop.nvim',
|
|
version = "*",
|
|
opts = {
|
|
keys = 'etovxqpdygfblzhckisuran'
|
|
},
|
|
config = function()
|
|
local hop = require('hop')
|
|
hop.setup()
|
|
local directions = require('hop.hint').HintDirection
|
|
vim.keymap.set('', '<C-F>', function ()
|
|
hop.hint_words({})
|
|
end, {remap=true})
|
|
|
|
vim.keymap.set('', '<C-f>', function ()
|
|
vim.api.nvim_echo({{" Enter letter: ", "Normal"}}, false, {})
|
|
local char = vim.fn.nr2char(vim.fn.getchar())
|
|
|
|
if not char:match('^[%w%p]$') then
|
|
vim.api.nvim_echo({{" Invalid input!", "ErrorMsg"}}, false, {})
|
|
return
|
|
end
|
|
vim.api.nvim_echo({}, false, {})
|
|
|
|
local pattern = '\\%(\\_^\\|[[:space:]{}.|><!@#$%^&*()-_+=`~;:,/?\\[\\]"\']\\)\\@<=[' .. char:lower() .. char:upper() .. ']'
|
|
hop.hint_patterns({}, pattern)
|
|
end, {remap=true})
|
|
|
|
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})
|
|
|
|
end
|
|
}
|