mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate Neovim to Nix (as a symlink)
This commit is contained in:
36
nix/home/neovim/nvim/lua/plugins/smart-splits.lua
Normal file
36
nix/home/neovim/nvim/lua/plugins/smart-splits.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
return {
|
||||
"mrjones2014/smart-splits.nvim",
|
||||
enabled = true,
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{ "<leader>wr", "<cmd>SmartResizeMode<cr>", desc = "Toggle Smart Resize Mode" },
|
||||
},
|
||||
config = function()
|
||||
require("smart-splits").setup({
|
||||
ignored_filetypes = {
|
||||
"nofile",
|
||||
"quickfix",
|
||||
"prompt",
|
||||
},
|
||||
ignored_buftypes = { "NvimTree" },
|
||||
default_amount = 3,
|
||||
at_edge = "wrap",
|
||||
move_cursor_same_row = false,
|
||||
resize_mode = {
|
||||
quit_key = "<ESC>",
|
||||
resize_keys = { "h", "j", "k", "l" },
|
||||
silent = false,
|
||||
hooks = {
|
||||
on_enter = nil,
|
||||
on_leave = nil,
|
||||
},
|
||||
},
|
||||
ignored_events = {
|
||||
"BufEnter",
|
||||
"WinEnter",
|
||||
},
|
||||
multiplexer_integration = "tmux",
|
||||
disable_multiplexer_nav_when_zoomed = true,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user