2024-02-15 16:43:37 +05:30
|
|
|
return function()
|
2024-03-05 12:24:50 +05:30
|
|
|
require("smart-splits").setup {
|
|
|
|
ignored_filetypes = {
|
|
|
|
"nofile",
|
|
|
|
"quickfix",
|
|
|
|
"prompt",
|
|
|
|
"neo-tree",
|
|
|
|
},
|
|
|
|
ignored_buftypes = { "NvimTree", "neo-tree" },
|
|
|
|
}
|
2024-02-15 16:43:37 +05:30
|
|
|
|
2024-03-05 12:24:50 +05:30
|
|
|
local keys = require "custom_keys"
|
|
|
|
local opttion = { noremap = true, silent = true }
|
2024-02-15 16:43:37 +05:30
|
|
|
|
2024-03-05 12:24:50 +05:30
|
|
|
vim.keymap.set({ "n", "t" }, keys.resize_left, require("smart-splits").resize_left, option)
|
|
|
|
vim.keymap.set({ "n", "t" }, keys.resize_down, require("smart-splits").resize_down, option)
|
|
|
|
vim.keymap.set({ "n", "t" }, keys.resize_up, require("smart-splits").resize_up, option)
|
|
|
|
vim.keymap.set({ "n", "t" }, keys.resize_right, require("smart-splits").resize_right, option)
|
2024-02-15 16:43:37 +05:30
|
|
|
end
|