offset for zz

main
Mathias Rothenhaeusler 2024-04-26 14:30:53 +02:00
parent e5f3d8da23
commit 662960b1b1
2 changed files with 8 additions and 4 deletions

View File

@ -71,7 +71,7 @@ local on_attach = function(_, bufnr)
keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics<CR>", opts) -- jump to previous diagnostic in buffer
-- keymap.set("n", "<leader>d", "<cmd>Lspsaga show_buf_diagnostics<CR>")
keymap.set("n", "<leader>dn", "<cmd>Lspsaga diagnostic_jump_next<CR>") -- jump to next diagnostic in buffer
keymap.set("n", "<leader>db", "<cmd>Lspsaga diagnostic_jump_prev<CR>") -- jump to previous diagnostic in buffer
keymap.set("n", "<leader>dp", "<cmd>Lspsaga diagnostic_jump_prev<CR>") -- jump to previous diagnostic in buffer
keymap.set("n", "gj", "]m", opts) -- jump to next method
keymap.set("n", "gk", "[m", opts) -- jump to previous method

View File

@ -13,6 +13,8 @@ set splitright splitbelow
set timeoutlen=1000
set number
set relativenumber
set scrolloff=10
syntax on
filetype indent on
set smartindent
@ -54,9 +56,11 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
tnoremap <Esc> <C-\><C-n>
" nnoremap <C-d> <C-d>zz
" nnoremap <C-u> <C-u>zz
" No clue what this does
" tnoremap <Esc> <C-\><C-n>
" nnoremap <C-F> :Rg<CR>
" nnoremap <C-p> :Files<CR>