Skip to content

Commit 4ab699f

Browse files
author
cht
committed
combile key to j and k
1 parent 4d6901e commit 4ab699f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/csvtools.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ function M.add_mappings()
155155
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "<leader>td", ":lua require'csvtools'.CloseWindow()<cr>", opts)
156156
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "<leader>tg", ":lua require'csvtools'.Ifclear()<cr>", opts)
157157
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "<up>", ":-1<cr>:lua require'csvtools'.Highlight()<cr>", opts)
158+
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "k", ":-1<cr>:lua require'csvtools'.Highlight()<cr>", opts)
158159
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "<down>", ":+1<cr>:lua require'csvtools'.Highlight()<cr>", opts)
160+
vim.api.nvim_buf_set_keymap(M.mainwindowbuf, "n", "j", ":+1<cr>:lua require'csvtools'.Highlight()<cr>", opts)
159161
end
160162
function M.setup(opts)
161163
M = vim.tbl_deep_extend("force", M, opts)

0 commit comments

Comments
 (0)