television customization, shortcut to cd into ansible
This commit is contained in:
@@ -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