diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-03-17 22:26:04 +0100 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-03-17 22:26:04 +0100 |
| commit | f42f70da93a162cca62859232e4ff0480c6fb846 (patch) | |
| tree | 8a7a36f1d09d9c21cda266a0097a0743fd4228fe /lua/pml68/remap.lua | |
| download | nvim-f42f70da93a162cca62859232e4ff0480c6fb846.tar.gz | |
feat: reborn
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/remap.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua new file mode 100644 index 0000000..578cb6f --- /dev/null +++ b/lua/pml68/remap.lua @@ -0,0 +1,15 @@ +vim.g.mapleader = " " +vim.keymap.set("n", "<C-n>", vim.cmd.Ex) +vim.keymap.set("n", "<leader>gB", "<cmd> Git blame <CR>") +vim.keymap.set("v", "<leader>cs", "<cmd> Silicon <CR>") +vim.keymap.set("n", "<leader>cp", ":!xclip -sel clip -target image/png -i 2024*.png && rm 2024*.png <CR>") +vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<CR>") + +function starting() + local pos = vim.api.nvim_win_get_cursor(0)[2] + local line = vim.api.nvim_get_current_line() + local nline = line:sub(0, pos) .. "<" .. line:sub(pos + 1) + vim.api.nvim_set_current_line(nline) +end + +vim.keymap.set("n", "<leader>s", "<cmd> lua starting() <CR>") |
