use something else for shada

This commit is contained in:
Oliver Hartmann 2022-05-05 15:26:43 +02:00
parent 4a6de72626
commit 8db95a1880
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
})
-- Read and write shada file
api.nvim_create_autocmd({ 'FocusGained', 'FocusLost' }, { command = [[rshada | wshada]] })
api.nvim_create_autocmd({ 'FocusLost' }, { command = [[wshada]] })
api.nvim_create_autocmd({ 'FocusGained' }, { command = [[rshada]] })
-- go to last loc when opening a buffer
api.nvim_create_autocmd(

View File

@ -21,7 +21,7 @@ vim.keymap.set('n', '<A-Down>', ':wincmd j<CR>', { noremap = true, silent = true
vim.keymap.set('n', '<A-Left>', ':wincmd h<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<A-Right>', ':wincmd l<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-S>', ':wa<CR>')
vim.keymap.set('n', '<C-S>', ':wa | wshada<CR>')
-- Linewrap and jumping
vim.keymap.set('n', 'k', 'gk')