summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/mappings.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
index ffd8610..de661e3 100644
--- a/.config/nvim/lua/mappings.lua
+++ b/.config/nvim/lua/mappings.lua
@@ -76,7 +76,7 @@ map('n', 'xx', 'dd')
76map('n', 'X', 'D') 76map('n', 'X', 'D')
77 77
78-- change into pwd of current directory 78-- change into pwd of current directory
79map('n', '<Leader>cd', ':cd %:p:h<CR>:pwd<CR>') 79map('n', '<Leader>cd', ':lcd %:p:h<CR>:pwd<CR>')
80 80
81-- press \g and start writing prose 81-- press \g and start writing prose
82map('n', '<Leader>g', ':Goyo<CR>') 82map('n', '<Leader>g', ':Goyo<CR>')
@@ -93,6 +93,8 @@ map('n', '<leader>nr', ':call CreateReference(expand("<cword>"))<CR>')
93-- create a new note 93-- create a new note
94map('n', '<leader>nn', ':call CreateNote()<CR>') 94map('n', '<leader>nn', ':call CreateNote()<CR>')
95 95
96vim.cmd("cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'")
97
96-- plug mappings {{{ -- 98-- plug mappings {{{ --
97 99
98-- <Plug> mappings should not be noremap 100-- <Plug> mappings should not be noremap