diff --git a/.pfs_todo b/.pfs_todo index 5ca18c9..a4a74bc 100644 --- a/.pfs_todo +++ b/.pfs_todo @@ -1,3 +1,7 @@ # TODO - correct way to override nvpunk's own shortcuts: see https://gitlab.com/gabmus/nvpunk/-/issues/11 +- figure out how to save the view state (cursor position and stuff) + The old method BufWinEnter aucmd doesn't work for some reason +- Snippets +- Comment shortcuts diff --git a/init.lua b/init.lua index a538b0e..898a123 100644 --- a/init.lua +++ b/init.lua @@ -67,9 +67,6 @@ require('fzf-lua').setup { vim.api.nvim_set_keymap('n', '', ':silent noh ', { noremap = true }) -vim.api.nvim_set_keymap('n', 't', ':tab drop', { noremap = true }) -vim.api.nvim_set_keymap('v', 't', ':tab drop', { noremap = true }) -vim.api.nvim_set_keymap('n', 'q', ':tabclose', { noremap = true }) vim.api.nvim_set_keymap('n', '', 'gt', { noremap = true }) vim.api.nvim_set_keymap('n', '', 'gT', { noremap = true }) @@ -118,8 +115,16 @@ vim.api.nvim_set_keymap('i', '', ':w', { noremap = true -- tabs vim.api.nvim_set_keymap('n', ',,', ':tabe', { noremap = true }) vim.api.nvim_set_keymap('n', '.', ':tab drop %:p:h', { noremap = true }) +vim.api.nvim_set_keymap('n', ',t', ':tab drop', { noremap = true }) +vim.api.nvim_set_keymap('v', ',t', ':tab drop', { noremap = true }) +vim.api.nvim_set_keymap('n', 'q', ':tabclose', { noremap = true }) +-- vim.opt.shada = "/100,'10,\"100,:20,%" +-- vim.opt.shadafile = "/home/pfs/.config/nvpunk/lua/user/nviminfo" +-- autocmd BufWinLeave * if expand("%") != "" | silent! mkview | endif +-- autocmd BufWinEnter * if expand("%") != "" | silent! loadview | endif + --map NERDCommenterToggle --map NERDCommenterSexy --nnoremap s :CocFzfList snippets