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