Install winshift plugin and add remap for WinShift command

This commit is contained in:
2021-11-15 18:53:14 +03:00
parent 3538ef7deb
commit 2e0a339231
2 changed files with 19 additions and 1 deletions

View File

@@ -64,9 +64,10 @@ return require("packer").startup(function(use)
use({
"lukas-reineke/indent-blankline.nvim",
config = function ()
vim.cmd("let g:indent_blankline_filetype_exclude = ['help']")
require("indent_blankline").setup({
char = "|",
buftype_exclude = { "terminal" }
buftype_exclude = { "terminal" },
})
end
})
@@ -78,4 +79,18 @@ return require("packer").startup(function(use)
require("lightspeed").setup()
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)

View File

@@ -76,3 +76,6 @@ nmap("<leader>t", ":ToggleTerminal<CR>")
-- Git
nmap("<leader>gg", ":G<CR>")
-- Winshift (move buffers across neovim)
nmap("<leader>m", "<cmd>WinShift<CR>")