fix: Make default keymaps silnent

This commit is contained in:
Myzel394 2023-10-08 22:05:09 +02:00
parent 6e59d9a262
commit d03ba805c3
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -59,14 +59,18 @@ local options = {
"n", "n",
"<Left>", "<Left>",
":JumpLeft<CR>", ":JumpLeft<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<S-Left>", "<S-Left>",
":SwapWithLeftCell<CR>", ":SwapWithLeftCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
@ -74,14 +78,18 @@ local options = {
"n", "n",
"<Right>", "<Right>",
":JumpRight<CR>", ":JumpRight<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<S-Right>", "<S-Right>",
":SwapWithRightCell<CR>", ":SwapWithRightCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
@ -89,14 +97,18 @@ local options = {
"n", "n",
"<Up>", "<Up>",
":JumpUp<CR>", ":JumpUp<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<S-Up>", "<S-Up>",
":SwapWithUpperCell<CR>", ":SwapWithUpperCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
@ -104,14 +116,18 @@ local options = {
"n", "n",
"<Down>", "<Down>",
":JumpDown<CR>", ":JumpDown<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<S-Down>", "<S-Down>",
":SwapWithLowerCell<CR>", ":SwapWithLowerCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
@ -119,14 +135,18 @@ local options = {
"n", "n",
"<Tab>", "<Tab>",
":JumpToNextCell<CR>", ":JumpToNextCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<S-Tab>", "<S-Tab>",
":JumpToPreviousCell<CR>", ":JumpToPreviousCell<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
@ -134,28 +154,36 @@ local options = {
"n", "n",
"<C-Left>", "<C-Left>",
":SwapWithLeftColumn<CR>", ":SwapWithLeftColumn<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<C-Right>", "<C-Right>",
":SwapWithRightColumn<CR>", ":SwapWithRightColumn<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<C-Up>", "<C-Up>",
":SwapWithUpperRow<CR>", ":SwapWithUpperRow<CR>",
{} {
silent = true,
}
) )
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
buf, buf,
"n", "n",
"<C-Down>", "<C-Down>",
":SwapWithLowerRow<CR>", ":SwapWithLowerRow<CR>",
{} {
silent = true,
}
) )
end end
} }