diff options
| -rw-r--r-- | .config/nvim/lua/mappings.lua | 4 |
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') | |||
| 76 | map('n', 'X', 'D') | 76 | map('n', 'X', 'D') |
| 77 | 77 | ||
| 78 | -- change into pwd of current directory | 78 | -- change into pwd of current directory |
| 79 | map('n', '<Leader>cd', ':cd %:p:h<CR>:pwd<CR>') | 79 | map('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 |
| 82 | map('n', '<Leader>g', ':Goyo<CR>') | 82 | map('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 |
| 94 | map('n', '<leader>nn', ':call CreateNote()<CR>') | 94 | map('n', '<leader>nn', ':call CreateNote()<CR>') |
| 95 | 95 | ||
| 96 | vim.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 |
