diff options
Diffstat (limited to '.config/nvim/lua/mappings.lua')
-rw-r--r-- | .config/nvim/lua/mappings.lua | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 6633134..ffd8610 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua | |||
@@ -93,7 +93,7 @@ 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 | -- plug mappings {{{1 -- | 96 | -- plug mappings {{{ -- |
97 | 97 | ||
98 | -- <Plug> mappings should not be noremap | 98 | -- <Plug> mappings should not be noremap |
99 | -- https://www.reddit.com/r/vim/comments/78izt4/please_help_understand_how_to_use_plug_mapping/ | 99 | -- https://www.reddit.com/r/vim/comments/78izt4/please_help_understand_how_to_use_plug_mapping/ |
@@ -135,11 +135,6 @@ plugmap('n', '<Leader><Leader>ss', '<plug>(SubversiveSubvertWordRange)') | |||
135 | plugmap('n', '<c-n>', '<Plug>(YoinkPostPasteSwapBack)') | 135 | plugmap('n', '<c-n>', '<Plug>(YoinkPostPasteSwapBack)') |
136 | plugmap('n', '<c-p>', '<Plug>(YoinkPostPasteSwapForward)') | 136 | plugmap('n', '<c-p>', '<Plug>(YoinkPostPasteSwapForward)') |
137 | 137 | ||
138 | -- insert mode completion | ||
139 | plugmap('i', '<c-x><c-k>', '<plug>(fzf-complete-word)') | ||
140 | plugmap('i', '<c-x><c-f>', '<plug>(fzf-complete-path)') | ||
141 | plugmap('i', '<c-x><c-l>', '<plug>(fzf-complete-line)') | ||
142 | |||
143 | -- checkmarks on vimwiki | 138 | -- checkmarks on vimwiki |
144 | plugmap('n', '<leader>v', '<Plug>VimwikiToggleListItem') | 139 | plugmap('n', '<leader>v', '<Plug>VimwikiToggleListItem') |
145 | -- add/increase header level | 140 | -- add/increase header level |
@@ -152,4 +147,10 @@ map('n', 't<C-s>', ':TestSuite<CR>') | |||
152 | map('n', 't<C-l>', ':TestLast<CR>') | 147 | map('n', 't<C-l>', ':TestLast<CR>') |
153 | map('n', 't<C-g>', ':TestVisit<CR>') | 148 | map('n', 't<C-g>', ':TestVisit<CR>') |
154 | 149 | ||
155 | -- 1}}} -- | 150 | -- telescope bindings |
151 | map('n', '<leader>ff', "<cmd>lua require('telescope.builtin').find_files()<cr>") | ||
152 | map('n', '<leader>fg', "<cmd>lua require('telescope.builtin').live_grep()<cr>") | ||
153 | map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>") | ||
154 | map('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>") | ||
155 | |||
156 | -- }}} plug mappings -- | ||