tmux-sessionizer and cht.sh keymaps

This commit is contained in:
Dynocoder 2024-06-29 20:06:30 -04:00
parent 6f68067e1b
commit 7b6a433e5a
2 changed files with 8 additions and 2 deletions

View File

@ -114,6 +114,11 @@ vim.opt.scrolloff = 999
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
-- open tmux-sessionizer
vim.keymap.set('n', '<C-g>', '<cmd>!tmux neww tmux-sessionizer<CR>', { desc = 'Open Tmux Sessionizer' })
-- open tmux-cht.sh cheatsheet
vim.keymap.set('n', '<leader>ts', '<cmd>!tmux neww cht.sh<CR>', { desc = 'Open chea[T][S]heet' })
-- Set highlight on search, but clear on pressing <Esc> in normal mode -- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.opt.hlsearch = true vim.opt.hlsearch = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')

View File

@ -1,8 +1,9 @@
return { return {
'kristijanhusak/vim-dadbod-ui', 'kristijanhusak/vim-dadbod-ui',
event = 'VeryLazy',
dependencies = { dependencies = {
{ 'tpope/vim-dadbod', lazy = true }, { 'tpope/vim-dadbod', event = 'VeryLazy' },
{ 'kristijanhusak/vim-dadbod-completion' }, { 'kristijanhusak/vim-dadbod-completion', event = 'InsertEnter' },
}, },
config = function() config = function()
vim.g.db_ui_use_nerd_fonts = 1 vim.g.db_ui_use_nerd_fonts = 1