-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back to nord + cokeline + proper focus shading in splits
- Loading branch information
1 parent
ea02110
commit 296104f
Showing
14 changed files
with
266 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
return function() | ||
local get_hex = require("cokeline/utils").get_hex | ||
local C = { | ||
active = { | ||
fg = "#d8dee9", | ||
bg = "#434c5e", | ||
}, | ||
inactive = { | ||
fg = "#d8dee9", | ||
bg = "#2e3440", | ||
}, | ||
bg = "#2e3440", | ||
fg = "#d8dee9", | ||
} | ||
require("cokeline").setup({ | ||
show_if_buffers_are_at_least = 2, | ||
buffers = { | ||
-- filter_valid = function(buffer) -> true | false, | ||
-- filter_visible = function(buffer) -> true | false, | ||
-- focus_on_delete = 'prev' | 'next', | ||
-- new_buffers_position = 'last' | 'next' | 'directory' | 'number', | ||
-- delete_on_right_click = true | false, | ||
}, | ||
-- rendering = { | ||
-- max_buffer_width = 999, | ||
-- }, | ||
|
||
default_hl = { | ||
fg = function(buf) | ||
return buf.is_focused and C.active.fg or C.inactive.fg | ||
end, | ||
bg = function(buf) | ||
return buf.is_focused and C.active.bg or C.inactive.bg | ||
end, | ||
style = "NONE", | ||
}, | ||
|
||
components = { | ||
{ | ||
text = "", | ||
fg = function(buf) | ||
return buf.is_focused and C.active.bg or C.inactive.bg | ||
end, | ||
bg = C.bg, | ||
}, | ||
{ | ||
text = function(buf) | ||
return " " .. buf.devicon.icon | ||
end, | ||
fg = function(buf) | ||
return buf.devicon.color | ||
end, | ||
}, | ||
{ | ||
text = function(buf) | ||
return buf.filename .. " " | ||
end, | ||
style = function(buf) | ||
return buf.is_focused and "italic" or "none" | ||
end, | ||
}, | ||
{ | ||
text = "", | ||
delete_buffer_on_left_click = true, | ||
}, | ||
{ | ||
text = " ", | ||
}, | ||
|
||
{ | ||
text = "", | ||
fg = function(buf) | ||
return buf.is_focused and C.active.bg or C.inactive.bg | ||
end, | ||
bg = C.bg, | ||
}, | ||
{ | ||
text = " ", | ||
bg = C.bg, | ||
}, | ||
}, | ||
|
||
sidebar = { | ||
filetype = "neo-tree", | ||
components = { | ||
{ | ||
text = " NeoTree", | ||
fg = get_hex("NeoTreeNormal", "fg"), | ||
bg = get_hex("NeoTeeNormal", "bg"), | ||
style = "bold", | ||
}, | ||
}, | ||
}, | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ remove_rtl_rule = 1 | |
|
||
; DO NOT CHANGE! | ||
[Backup] | ||
version = | ||
with = | ||
version = 1.2.9.743.g85d9593d | ||
with = 2.17.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,28 @@ | ||
" You can edit this file by hand. | ||
" The " character at the beginning of a line comments out the line. | ||
" Blank lines are ignored. | ||
|
||
" The Default color scheme is used for any directory that does not have | ||
" a specified scheme and for parts of user interface like menus. A | ||
" color scheme set for a base directory will also | ||
" be used for the sub directories. | ||
|
||
" The standard ncurses colors are: | ||
" Default = -1 = None, can be used for transparency or default color | ||
" Black = 0 | ||
" Red = 1 | ||
" Green = 2 | ||
" Yellow = 3 | ||
" Blue = 4 | ||
" Magenta = 5 | ||
" Cyan = 6 | ||
" White = 7 | ||
|
||
" Light versions of colors are also available (they set bold | ||
" attribute in terminals with less than 16 colors): | ||
" LightBlack | ||
" LightRed | ||
" LightGreen | ||
" LightYellow | ||
" LightBlue | ||
" LightMagenta | ||
" LightCyan | ||
" LightWhite | ||
|
||
" Available attributes (some of them can be combined): | ||
" bold | ||
" underline | ||
" reverse or inverse | ||
" standout | ||
" italic (on unsupported systems becomes reverse) | ||
" combine | ||
" none | ||
|
||
" Vifm supports 256 colors you can use color numbers 0-255 | ||
" (requires properly set up terminal: set your TERM environment variable | ||
" (directly or using resources) to some color terminal name (e.g. | ||
" xterm-256color) from /usr/lib/terminfo/; you can check current number | ||
" of colors in your terminal with tput colors command) | ||
|
||
" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color | ||
" nord color scheme approximation for vifm | ||
|
||
" Reset all styles first | ||
highlight clear | ||
|
||
highlight Win cterm=none ctermfg=white ctermbg=black | ||
highlight Directory cterm=bold ctermfg=cyan ctermbg=default | ||
highlight Link cterm=bold ctermfg=yellow ctermbg=default | ||
highlight BrokenLink cterm=bold ctermfg=red ctermbg=default | ||
highlight HardLink cterm=none ctermfg=yellow ctermbg=default | ||
highlight Socket cterm=bold ctermfg=magenta ctermbg=default | ||
highlight Device cterm=bold ctermfg=red ctermbg=default | ||
highlight Fifo cterm=bold ctermfg=cyan ctermbg=default | ||
highlight Executable cterm=bold ctermfg=green ctermbg=default | ||
highlight Selected cterm=bold ctermfg=magenta ctermbg=default | ||
highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default | ||
highlight TopLine cterm=none ctermfg=black ctermbg=white | ||
highlight TopLineSel cterm=bold ctermfg=black ctermbg=default | ||
highlight StatusLine cterm=bold ctermfg=black ctermbg=white | ||
highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black | ||
highlight CmdLine cterm=none ctermfg=white ctermbg=black | ||
highlight ErrorMsg cterm=none ctermfg=red ctermbg=black | ||
highlight Border cterm=none ctermfg=black ctermbg=white | ||
highlight OtherLine ctermfg=default ctermbg=default | ||
highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white | ||
highlight SuggestBox cterm=bold ctermfg=default ctermbg=default | ||
highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red | ||
highlight AuxWin ctermfg=default ctermbg=default | ||
highlight TabLine cterm=none ctermfg=white ctermbg=black | ||
highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default | ||
highlight User1 ctermfg=default ctermbg=default | ||
highlight User2 ctermfg=default ctermbg=default | ||
highlight User3 ctermfg=default ctermbg=default | ||
highlight User4 ctermfg=default ctermbg=default | ||
highlight User5 ctermfg=default ctermbg=default | ||
highlight User6 ctermfg=default ctermbg=default | ||
highlight User7 ctermfg=default ctermbg=default | ||
highlight User8 ctermfg=default ctermbg=default | ||
highlight User9 ctermfg=default ctermbg=default | ||
highlight OtherWin ctermfg=default ctermbg=default | ||
highlight LineNr ctermfg=default ctermbg=default | ||
highlight OddLine ctermfg=default ctermbg=default | ||
highlight Border cterm=none ctermfg=default ctermbg=default | ||
highlight TopLine cterm=none ctermfg=110 ctermbg=236 | ||
highlight TopLineSel cterm=bold ctermfg=110 ctermbg=237 | ||
|
||
highlight Win cterm=none ctermfg=7 ctermbg=default | ||
highlight OtherWin cterm=none ctermfg=7 ctermbg=default | ||
highlight CurrLine cterm=bold,inverse ctermfg=default ctermbg=default | ||
highlight OtherLine cterm=bold ctermfg=default ctermbg=235 | ||
highlight Selected cterm=none ctermfg=7 ctermbg=237 | ||
|
||
highlight JobLine cterm=bold ctermfg=116 ctermbg=238 | ||
highlight StatusLine cterm=bold ctermfg=110 ctermbg=237 | ||
highlight ErrorMsg cterm=bold ctermfg=167 ctermbg=default | ||
highlight WildMenu cterm=bold,inverse ctermfg=110 ctermbg=236 | ||
highlight CmdLine cterm=none ctermfg=7 ctermbg=default | ||
|
||
highlight Executable cterm=bold ctermfg=003 ctermbg=default | ||
highlight Directory cterm=bold ctermfg=110 ctermbg=default | ||
highlight Link cterm=none ctermfg=005 ctermbg=default | ||
highlight BrokenLink cterm=bold ctermfg=007 ctermbg=167 | ||
highlight Device cterm=none,standout ctermfg=110 ctermbg=default | ||
highlight Fifo cterm=none ctermfg=172 ctermbg=default | ||
highlight Socket cterm=bold ctermfg=223 ctermbg=default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This directory is dedicated for user-supplied scripts/executables. | ||
vifm modifies its PATH environment variable to let user run those | ||
scripts without specifying full path. All subdirectories are added | ||
as well. File in a subdirectory overrules file with the same name | ||
in parent directories. Restart might be needed to recognize files | ||
in newly created or renamed subdirectories. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"gtabs":[{"panes":[{"ptabs":[{"history":[{"dir":"/Users/nathan","file":"Dropbox","relpos":5,"ts":1654489671},{"dir":"/Users/nathan/Dropbox","file":"..","relpos":0,"ts":1654489671},{"dir":"/Users/nathan","file":"Dropbox","relpos":5,"ts":1654489671},{"dir":"/Users","file":"nathan","relpos":2,"ts":1654489671},{"dir":"/Users/nathan","file":"Dropbox","relpos":5,"ts":1654489671}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/Users/nathan","sorting":[2],"preview":false}]},{"ptabs":[{"history":[{"dir":"/Users/nathan","file":"..","relpos":0,"ts":1654489671}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/Users/nathan","sorting":[2],"preview":false}]}],"active-pane":0,"preview":false,"splitter":{"pos":-1,"ratio":0.5,"orientation":"v","expanded":false}}],"marks":{"H":{"dir":"/Users/nathan/","file":"..","ts":1654489646},"b":{"dir":"/Users/nathan/bin/","file":"..","ts":1654489646},"h":{"dir":"/Users/nathan/","file":"..","ts":1654489646},"z":{"dir":"/Users/nathan/.config/vifm","file":"..","ts":1654489646}},"bmarks":{},"cmd-hist":[{"text":"q","ts":1654489671}],"regs":{},"dir-stack":[],"use-term-multiplexer":false} | ||
{"gtabs":[{"panes":[{"ptabs":[{"history":[{"dir":"/Users/nathan","file":"Dropbox","relpos":5,"ts":1654489671},{"dir":"/Users/nathan/Dropbox","file":"..","relpos":0,"ts":1654489671},{"dir":"/Users/nathan","file":"Dropbox","relpos":5,"ts":1654489671},{"dir":"/Users","file":"nathan","relpos":2,"ts":1654489671},{"dir":"/Users/nathan","file":"Music","relpos":9,"ts":1654489671},{"dir":"/Users/nathan/src/nydoitt/aci-automation/validation/rules","file":"201_references.py","relpos":3,"ts":1681489263}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/Users/nathan/src/nydoitt/aci-automation/validation/rules","sorting":[2],"preview":false}]},{"ptabs":[{"history":[{"dir":"/Users/nathan","file":"..","relpos":0,"ts":1654489671}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/Users/nathan","sorting":[2],"preview":false}]}],"active-pane":0,"preview":false,"splitter":{"pos":-1,"ratio":0.5,"orientation":"v","expanded":false}}],"trash":[{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_202_fabric_leaf_switch_policy_group_references.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/202_fabric_leaf_switch_policy_group_references.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_203_fabric_spine_switch_policy_group_references.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/203_fabric_spine_switch_policy_group_references.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_204_access_leaf_interface_policy_group_references.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/204_access_leaf_interface_policy_group_references.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_205_access_spine_interface_policy_group_references.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/205_access_spine_interface_policy_group_references.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_301_infra_vlan_aaep.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/301_infra_vlan_aaep.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_302_dns_policy_profile.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/302_dns_policy_profile.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_303_pod_policy.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/303_pod_policy.py"},{"trashed":"/Users/nathan/.local/share/vifm/Trash/000_304_date_time_policy.py","original":"/Users/nathan/src/nydoitt/aci-automation/validation/rules/304_date_time_policy.py"}],"marks":{"H":{"dir":"/Users/nathan/","file":"..","ts":1654489646},"b":{"dir":"/Users/nathan/bin/","file":"..","ts":1654489646},"h":{"dir":"/Users/nathan/","file":"..","ts":1654489646},"z":{"dir":"/Users/nathan/.config/vifm","file":"..","ts":1654489646}},"bmarks":{},"cmd-hist":[{"text":"help config","ts":1681489072},{"text":"colorscheme Default","ts":1681489228},{"text":"q","ts":1681489228}],"regs":{"\"":["/Users/nathan/.local/share/vifm/Trash/000_202_fabric_leaf_switch_policy_group_references.py","/Users/nathan/.local/share/vifm/Trash/000_203_fabric_spine_switch_policy_group_references.py","/Users/nathan/.local/share/vifm/Trash/000_204_access_leaf_interface_policy_group_references.py","/Users/nathan/.local/share/vifm/Trash/000_205_access_spine_interface_policy_group_references.py","/Users/nathan/.local/share/vifm/Trash/000_301_infra_vlan_aaep.py","/Users/nathan/.local/share/vifm/Trash/000_302_dns_policy_profile.py","/Users/nathan/.local/share/vifm/Trash/000_303_pod_policy.py","/Users/nathan/.local/share/vifm/Trash/000_304_date_time_policy.py"]},"dir-stack":[],"use-term-multiplexer":true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.