diff options
author | Yigit Sever | 2021-10-11 23:59:32 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-11 23:59:32 +0300 |
commit | c1642f7bb58226ee1497064b85c4037e7e9c9be3 (patch) | |
tree | 39141020ddeaa1bb79c9d426bbd14c55c0934832 /.config/nvim/lua | |
parent | ce9d212523e44fb4c680b868fe554bcc7bed5100 (diff) | |
download | dotfiles-c1642f7bb58226ee1497064b85c4037e7e9c9be3.tar.gz dotfiles-c1642f7bb58226ee1497064b85c4037e7e9c9be3.tar.bz2 dotfiles-c1642f7bb58226ee1497064b85c4037e7e9c9be3.zip |
nvim: new %% mapping and lcd
Diffstat (limited to '.config/nvim/lua')
-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 |