summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorYigit Sever2021-10-11 23:59:32 +0300
committerYigit Sever2021-10-11 23:59:32 +0300
commitc1642f7bb58226ee1497064b85c4037e7e9c9be3 (patch)
tree39141020ddeaa1bb79c9d426bbd14c55c0934832 /.config/nvim/lua
parentce9d212523e44fb4c680b868fe554bcc7bed5100 (diff)
downloaddotfiles-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.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