This commit is contained in:
Yaser Alraddadi 2025-02-16 21:57:58 +03:00
parent bdd33a7d9a
commit 451549cb45
No known key found for this signature in database
GPG key ID: 808212144E6DBE90
3 changed files with 52 additions and 4 deletions

View file

@ -235,14 +235,17 @@ vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Buffer switch
-- https://github.com/tpope/vim-unimpaired
vim.keymap.set({ 'n' }, ']b', '<cmd>bnext<CR>', { silent = true })
vim.keymap.set({ 'n' }, '[b', '<cmd>bprev<CR>', { silent = true })
vim.keymap.set({ 'n' }, ']q', '<cmd>cnext<CR>', { silent = true })
vim.keymap.set({ 'n' }, '[q', '<cmd>cprevious<CR>', { silent = true })
-- vim.keymap.set({ 'n', 'i', 'v' }, '<C-h>', '<cmd>bnext<CR>', { silent = true })
-- vim.keymap.set({ 'n', 'i', 'v' }, '<C-l>', '<cmd>bprev<CR>', { silent = true })
-- Close all buffers and keep the open one only
vim.keymap.set('n', '<leader>b', '<cmd>:%bd|e#|bd#<CR>', { desc = 'Close all buffers and keep the open one only' })
-- signature help
-- Signature help
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers['signature_help'], {
border = 'single',
close_events = { 'CursorMoved', 'BufHidden' },