Install winshift plugin and add remap for WinShift command
This commit is contained in:
@@ -64,9 +64,10 @@ return require("packer").startup(function(use)
|
|||||||
use({
|
use({
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
config = function ()
|
config = function ()
|
||||||
|
vim.cmd("let g:indent_blankline_filetype_exclude = ['help']")
|
||||||
require("indent_blankline").setup({
|
require("indent_blankline").setup({
|
||||||
char = "|",
|
char = "|",
|
||||||
buftype_exclude = { "terminal" }
|
buftype_exclude = { "terminal" },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
@@ -78,4 +79,18 @@ return require("packer").startup(function(use)
|
|||||||
require("lightspeed").setup()
|
require("lightspeed").setup()
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Window management
|
||||||
|
use({
|
||||||
|
"sindrets/winshift.nvim",
|
||||||
|
config = function ()
|
||||||
|
require("winshift").setup({
|
||||||
|
highlight_moving_win = true,
|
||||||
|
window_picker_ignore = {
|
||||||
|
filetype = { "NvimTree" },
|
||||||
|
buftype = { "terminal" }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -76,3 +76,6 @@ nmap("<leader>t", ":ToggleTerminal<CR>")
|
|||||||
|
|
||||||
-- Git
|
-- Git
|
||||||
nmap("<leader>gg", ":G<CR>")
|
nmap("<leader>gg", ":G<CR>")
|
||||||
|
|
||||||
|
-- Winshift (move buffers across neovim)
|
||||||
|
nmap("<leader>m", "<cmd>WinShift<CR>")
|
||||||
|
|||||||
Reference in New Issue
Block a user