aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/remap.lua
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-03-19 14:10:41 +0100
committerpml68 <tutorialmester@gmail.com>2024-03-19 14:10:41 +0100
commite0cf6ac98380787e252274d7dda7b6b3430b86c4 (patch)
tree893fdbbee1ad068794594c91c2846cb8c5940499 /lua/pml68/remap.lua
parentfeat: set CMP to use the Normal highlight group (diff)
downloadnvim-e0cf6ac98380787e252274d7dda7b6b3430b86c4.tar.gz
feat: add DAP keymaps
Diffstat (limited to '')
-rw-r--r--lua/pml68/remap.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua
index dab15ca..7394e8c 100644
--- a/lua/pml68/remap.lua
+++ b/lua/pml68/remap.lua
@@ -6,14 +6,12 @@ vim.keymap.set("n", "<leader>cp", ":!xclip -sel clip -target image/png -i 2024*.
vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<CR>")
-- keyboard problems (temporary)
-function starting()
+vim.keymap.set("n", "<leader>s", function()
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>")
+end)
-- switch between windows
vim.keymap.set("n", "<C-h>", "<C-w>h")