Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use 'sindrets/winshift.nvim'
require("winshift").setup({
highlight_moving_win = true, -- Highlight the window being moved
focused_hl_group = "Visual", -- The highlight group used for the moving window
window_picker_hl_group = "StatusLineNC" -- The highlight group used for the target windows
moving_win_options = {
-- These are local options applied to the moving window while it's
-- being moved. They are unset when you leave Win-Move mode.
Expand Down
1 change: 1 addition & 0 deletions doc/winshift.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Example configuration with default settings:
require("winshift").setup({
highlight_moving_win = true, -- Highlight the window being moved
focused_hl_group = "Visual", -- The highlight group used for the moving window
window_picker_hl_group = "StatusLineNC" -- The highlight group used for the target windows
moving_win_options = {
-- These are local options applied to the moving window while it's
-- being moved. They are unset when you leave move mode.
Expand Down
4 changes: 3 additions & 1 deletion lua/winshift/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,16 @@ function M.get_hl_groups()
or (M.get_bg({ hl_focused, "Normal" }) or "white")
local fg_focused = reverse and (M.get_bg({ hl_focused, "Normal" }) or "black") or nil

local hl_window_picker = config.get_config().window_picker_hl_group

return {
Normal = { fg = fg_focused, bg = bg_focused },
EndOfBuffer = { fg = bg_focused, bg = bg_focused },
LineNr = { fg = M.get_fg("LineNr"), bg = bg_focused, gui = M.get_gui("LineNr") },
CursorLineNr = { fg = M.get_fg("CursorLineNr"), bg = bg_focused, gui = M.get_gui("CursorLineNr") },
SignColumn = { fg = M.get_fg("SignColumn"), bg = bg_focused },
FoldColumn = { fg = M.get_fg("FoldColumn"), bg = bg_focused },
WindowPicker = { fg = "#ededed", bg = "#4493c8", ctermfg = 255, ctermbg = 33, gui = "bold" },
WindowPicker = { fg = M.get_fg(hl_window_picker), bg = M.get_bg(hl_window_picker), gui = M.get_gui(hl_window_picker) },
}
end

Expand Down
1 change: 1 addition & 0 deletions lua/winshift/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local M = {}
M.defaults = {
highlight_moving_win = true,
focused_hl_group = "Visual",
window_picker_hl_group = "StatusLineNC",
moving_win_options = {
wrap = false,
cursorline = false,
Expand Down