config-neovim/lua/plugins/smart-splits.lua
leafee98 e777101523 Refactor plugins
- Add marks.nvim
- Use mason to setup LSP
  - config lua_ls for neovim config
- Disable treesitter
- Remove scroll plugin
- Remove mini-animate
2024-08-22 22:54:58 +08:00

41 lines
1.3 KiB
Lua

return {
"mrjones2014/smart-splits.nvim",
event = "VeryLazy",
opts = { ignored_filetypes = { "nofile", "quickfix", "qf", "prompt" }, ignored_buftypes = { "nofile" } },
keys = {
{
"<c-h>",
function() require("smart-splits").move_cursor_left() end,
desc = "Move to left split"
},
{
"<c-j>", function() require("smart-splits").move_cursor_down() end,
desc = "Move to below split"
},
{
"<c-k>", function() require("smart-splits").move_cursor_up() end,
desc = "Move to above split"
},
{
"<c-l>", function() require("smart-splits").move_cursor_right() end,
desc = "Move to right split"
},
{
"<c-up>", function() require("smart-splits").resize_up() end,
desc = "Resize split up"
},
{
"<c-down>", function() require("smart-splits").resize_down() end,
desc = "Resize split down"
},
{
"<c-left>", function() require("smart-splits").resize_left() end,
desc = "Resize split left"
},
{
"<c-right>", function() require("smart-splits").resize_right() end,
desc = "Resize split right"
},
},
}