From 267b79def84000c2786cfd0c82db0b3aecad65c4 Mon Sep 17 00:00:00 2001
From: Paul Schulze
Date: Fri, 22 Mar 2024 08:41:26 +0100
Subject: [PATCH] added some TODOs
---
.pfs_todo | 4 ++++
init.lua | 11 ++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
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