feat(nvim): add some useful keymaps

This commit is contained in:
Stefan Imhoff
2022-12-15 22:48:59 +01:00
parent e111974432
commit 59ed16b1d4

View File

@@ -151,3 +151,12 @@ keymap("n", "<leader>o", "<cmd>lua vim.lsp.buf.format()<CR>", opts)
-- Manual Prettier -- Manual Prettier
keymap("n", "<leader>P", "<cmd>Prettier<CR>", opts) keymap("n", "<leader>P", "<cmd>Prettier<CR>", opts)
-- Get the filename and path of current file
keymap("n", "<leader>kn", ":let @+=@%<CR>", opts)
-- Remove console.log statements
keymap("n", "<leader>kc", ":g/console.log/d<CR>", opts)
-- Convert Markdown to HTML and copy to Clipboard
keymap("v", "<leader>kp", ":'<,'> w !pandoc --no-highlight --wrap=none | pbcopy <CR>", opts)