television customization, shortcut to cd into ansible
This commit is contained in:
@@ -554,7 +554,8 @@ do
|
||||
vim.keymap.set('n', '<leader>sr', builtin.resume, { desc = '[S]earch [R]esume' })
|
||||
vim.keymap.set('n', '<leader>s.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
|
||||
vim.keymap.set('n', '<leader>sc', builtin.commands, { desc = '[S]earch [C]ommands' })
|
||||
vim.keymap.set('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
|
||||
vim.keymap.set('n', '<leader><leader>', builtin.find_files, { desc = '[ ] Find files' })
|
||||
vim.keymap.set('n', '<leader>sb', builtin.buffers, { desc = '[S]earch [B]uffers' })
|
||||
|
||||
-- Add Telescope-based LSP pickers when an LSP attaches to a buffer.
|
||||
-- If you later switch picker plugins, this is where to update these mappings.
|
||||
|
||||
@@ -20,7 +20,7 @@ require('tv').setup {
|
||||
channels = {
|
||||
files = {
|
||||
layout = 'portrait',
|
||||
keybinding = '<leader><leader>',
|
||||
keybinding = '<leader>tf',
|
||||
handlers = {
|
||||
['<CR>'] = h.open_as_files,
|
||||
['<C-q>'] = h.send_to_quickfix,
|
||||
|
||||
@@ -53,3 +53,9 @@ vim.api.nvim_create_autocmd('DirChanged', {
|
||||
end,
|
||||
desc = 'Add directory to zoxide database when changing directories in Neovim',
|
||||
})
|
||||
|
||||
-- Custom directory aliases
|
||||
-- Using command abbreviation since Neovim commands must start with uppercase
|
||||
vim.cmd([[
|
||||
cnoreabbrev <expr> cda getcmdtype() == ':' && getcmdline() == 'cda' ? 'cd $HOME/Syncthing/Git/ansible/' : 'cda'
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user