Skip to content

Commit

Permalink
back to nord + cokeline + proper focus shading in splits
Browse files Browse the repository at this point in the history
  • Loading branch information
brightpuddle committed Apr 18, 2023
1 parent ea02110 commit 296104f
Show file tree
Hide file tree
Showing 14 changed files with 266 additions and 129 deletions.
2 changes: 1 addition & 1 deletion .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ o.foldenable = false
o.grepprg = "rg --color=never"
o.guicursor = "a:blinkon0,i:ver25-iCursor"
o.ignorecase = true
o.laststatus = 3
-- o.laststatus = 2
o.cmdheight = 0
o.linebreak = true
o.mouse = "a"
Expand Down
95 changes: 95 additions & 0 deletions .config/nvim/lua/config/cokeline.lua
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
16 changes: 9 additions & 7 deletions .config/nvim/lua/config/color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@

return function()
vim.cmd.colorscheme("nord")
-- require("catppuccin").setup({
-- custom_highlights = function(c)
-- return {
-- ["@"]
-- }
-- end,
-- })

vim.api.nvim_set_hl(0, "Normal", { bg = "none" })

-- General visibility
vim.api.nvim_set_hl(0, "Comment", { fg = "#616e88", italic = 1 })
Expand All @@ -51,5 +46,12 @@ return function()
-- Neotree
vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = "#3B4252" })
vim.api.nvim_set_hl(0, "NeoTreeNormal", { bg = "#282E39" })
vim.api.nvim_set_hl(0, "NeoTreeNormalNC", { bg = "#282E39" })
vim.api.nvim_set_hl(0, "NeoTreeWinSeparator", { fg = "#2E3440", bg = "#2E3440" })

-- Trouble
vim.api.nvim_set_hl(0, "TroubleNormal", { bg = "#282E39" })

-- Cokeline
vim.api.nvim_set_hl(0, "TabLine", { bg = "#2E3440" })
end
1 change: 1 addition & 0 deletions .config/nvim/lua/config/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ return function()
lsp.terraformls.setup(config())
lsp.tsserver.setup(config())
lsp.vls.setup(config({ format = true }))
lsp.zls.setup(config())
lsp.lua_ls.setup({
on_attach = on_attach(),
capabilities = capabilities,
Expand Down
20 changes: 13 additions & 7 deletions .config/nvim/plugin/10-main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require("packer").startup({
use({ "lewis6991/impatient.nvim" })

-- pretty menus
use({ "stevearc/dressing.nvim" })
-- use({ "stevearc/dressing.nvim" })

-- Keymaps
use({
Expand Down Expand Up @@ -94,15 +94,21 @@ require("packer").startup({

-- colorscheme
use({ "nordtheme/vim", as = "nord", config = require("config.color") })
-- use({ "catppuccin/nvim", as = "catppuccin", config = require("config.color") })
-- use({ "shaunsingh/nord.nvim", as = "nord", config = require("config.color") })

-- "tab" line with buffers
-- use({
-- "akinsho/bufferline.nvim",
-- tag = "*",
-- requires = { "kyazdani42/nvim-web-devicons" },
-- -- opt = true,
-- config = require("config.bufferline"),
-- })
use({
"akinsho/bufferline.nvim",
tag = "*",
requires = { "kyazdani42/nvim-web-devicons" },
-- opt = true,
config = require("config.bufferline"),
"willothy/nvim-cokeline",
requires = "kyazdani42/nvim-web-devicons",
config = require("config.cokeline"),
after = "nord",
})

-- syntax highlighting, etc
Expand Down
4 changes: 2 additions & 2 deletions .config/spicetify/config-xpui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ remove_rtl_rule = 1

; DO NOT CHANGE!
[Backup]
version =
with =
version = 1.2.9.743.g85d9593d
with = 2.17.1
11 changes: 8 additions & 3 deletions .config/tmux/settings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ set -g mode-style "fg=white,bg=brightblack"
set -g message-style "fg=white,bg=brightblack"
set -g message-command-style "fg=white,bg=brightblack"

# Bordres
set -g pane-active-border-style bg=default,fg="#b48ead"
set -g pane-border-style fg="#a3be8c"

# Pane colors
set -g window-style bg="#2a2e38"
set -g window-active-style bg="#2e3440"

# Borders
set -g pane-active-border-style bg=default,fg="#393c42"
set -g pane-border-style fg="#393c42",bg=default
5 changes: 5 additions & 0 deletions .config/tmux/status.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ set -g status-left ""
set -g status-right "#[fg=#434c5e bg=default]"
set -ag status-right "#[fg=color4 bg=#434c5e]  #[fg=default] #H "
set -ag status-right "#[fg=#434c5e bg=default]"

# Hide the status if only one window
# if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"
# set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'
# set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'
109 changes: 25 additions & 84 deletions .config/vifm/colors/Default.vifm
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
6 changes: 6 additions & 0 deletions .config/vifm/scripts/README
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.
2 changes: 1 addition & 1 deletion .config/vifm/vifminfo.json
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}
7 changes: 1 addition & 6 deletions .config/vifm/vifmrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
set vicmd=nvim

" This makes vifm perform file operations on its own instead of relying on
" standard utilities like `cp`. While using `cp` and alike is a more universal
" solution, it's also much slower when processing large amounts of files and
" doesn't support progress measuring.

screen!
set syscalls
set trash
Expand All @@ -14,7 +9,7 @@ set sortnumbers
set undolevels=100
set vimhelp
set norunexec
colorscheme Default-256 Default
colorscheme Default
set timefmt=%m/%d\ %H:%M
set wildmenu
set wildstyle=popup
Expand Down
Loading

0 comments on commit 296104f

Please sign in to comment.