commit a7b7526fce20966add33bfc26fd222476f3d24d1
parent 87f12cc125153a0bc21d0177373cc67088a51564
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date: Tue, 30 Apr 2024 16:46:47 -0400
options.lua: begin to fix remap config
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lua/options.lua b/lua/options.lua
@@ -29,11 +29,12 @@ local has_words_before = function()
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
---- move to window
---map("n", "<C-h>", "<C-w>h", { desc = "Go to Left Window", remap = true })
---map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window", remap = true })
---map("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window", remap = true })
---map("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window", remap = true })
+--local map = vim.api.nvim_set_keymap
+----- move to window
+--map("n", "<C-h>", "<C-w>h", { desc = "Go to Left Window" })
+--map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window" })
+--map("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window" })
+--map("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window" })
--- clear search with escape
--map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", { desc = "Escape and Clear hlsearch" })