mono dark and light for k9s and nvim lsp keyboard modifications
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
./k9s/.config/k9s/clusters
|
||||
./k9s/.config/k9s/clusters/**
|
||||
|
||||
@@ -7,7 +7,7 @@ foreground = d8d8d8
|
||||
selection-background = d8d8d8
|
||||
selection-foreground = 181818
|
||||
|
||||
palette = 0=#181818
|
||||
palette = 0=#111111
|
||||
palette = 1=#d8d8d8
|
||||
palette = 2=#d8d8d8
|
||||
palette = 3=#d8d8d8
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
k9s:
|
||||
cluster: kubernetes
|
||||
namespace:
|
||||
active: cp-automation-bmdp
|
||||
active: all
|
||||
lockFavorites: false
|
||||
favorites:
|
||||
- cp-automation-bmdp
|
||||
- z-admin
|
||||
- auto-dp
|
||||
- vdp
|
||||
- cp-automation-dp
|
||||
- all
|
||||
- cp1-ns
|
||||
- default
|
||||
- nperf12-my-ns
|
||||
- auto-bmdp
|
||||
- cp-automation-bmdp
|
||||
- cp-automation-dp
|
||||
view:
|
||||
active: v1/namespaces
|
||||
featureGates:
|
||||
|
||||
@@ -13,7 +13,7 @@ k9s:
|
||||
reactive: false
|
||||
noIcons: false
|
||||
defaultsToFullScreen: false
|
||||
skin: default-dark
|
||||
skin: monodark
|
||||
skipLatestRevCheck: false
|
||||
disablePodCounting: false
|
||||
shellPod:
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
appearance=$(defaults read -g AppleInterfaceStyle 2>/dev/null)
|
||||
|
||||
if [[ "$appearance" = "Dark" ]]; then
|
||||
skin="default-dark"
|
||||
skin="monodark"
|
||||
else
|
||||
skin="default-light"
|
||||
skin="monolight"
|
||||
fi
|
||||
|
||||
config_file="$HOME/doc/dev/dotfiles/k9s/.config/k9s/config.yaml"
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
# Monochrome skin matching Ghostty's monodark theme.
|
||||
# Statuses fade from normal text to darker grays while retaining at least
|
||||
# WCAG AA contrast against the background.
|
||||
|
||||
foreground: &foreground "#d8d8d8"
|
||||
background: &background "#111111"
|
||||
focus: &focus "#f5f5f5"
|
||||
pending: &pending "#aaaaaa"
|
||||
unhealthy: &unhealthy "#888888"
|
||||
muted: &muted "#888888"
|
||||
|
||||
k9s:
|
||||
body:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
logoColor: *foreground
|
||||
prompt:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
suggestColor: *pending
|
||||
info:
|
||||
fgColor: *foreground
|
||||
sectionColor: *focus
|
||||
help:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
keyColor: *focus
|
||||
numKeyColor: *pending
|
||||
sectionColor: *foreground
|
||||
dialog:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
buttonFgColor: *background
|
||||
buttonBgColor: *foreground
|
||||
buttonFocusFgColor: *background
|
||||
buttonFocusBgColor: *focus
|
||||
labelFgColor: *pending
|
||||
fieldFgColor: *foreground
|
||||
frame:
|
||||
border:
|
||||
fgColor: *muted
|
||||
focusColor: *focus
|
||||
menu:
|
||||
fgColor: *foreground
|
||||
keyColor: *focus
|
||||
numKeyColor: *pending
|
||||
crumbs:
|
||||
fgColor: *background
|
||||
bgColor: *foreground
|
||||
activeColor: *background
|
||||
status:
|
||||
newColor: *foreground
|
||||
modifyColor: *foreground
|
||||
addColor: *foreground
|
||||
pendingColor: *pending
|
||||
errorColor: *unhealthy
|
||||
highlightColor: *focus
|
||||
killColor: *unhealthy
|
||||
completedColor: *muted
|
||||
title:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
highlightColor: *focus
|
||||
counterColor: *pending
|
||||
filterColor: *foreground
|
||||
views:
|
||||
charts:
|
||||
bgColor: *background
|
||||
defaultDialColors:
|
||||
- *foreground
|
||||
- *unhealthy
|
||||
defaultChartColors:
|
||||
- *foreground
|
||||
- *unhealthy
|
||||
table:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
cursorFgColor: *background
|
||||
cursorBgColor: *foreground
|
||||
markColor: *focus
|
||||
header:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
sorterColor: *focus
|
||||
selectedSortColumnColor: *pending
|
||||
xray:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
cursorColor: *focus
|
||||
graphicColor: *pending
|
||||
showIcons: false
|
||||
yaml:
|
||||
keyColor: *foreground
|
||||
colonColor: *muted
|
||||
valueColor: *pending
|
||||
logs:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
indicator:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
toggleOnColor: *focus
|
||||
toggleOffColor: *muted
|
||||
help:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
indicator:
|
||||
fgColor: *focus
|
||||
@@ -0,0 +1,108 @@
|
||||
# Monochrome skin matching Ghostty's monolight theme.
|
||||
# Pending state is grayer than normal text; unhealthy state is darker. All
|
||||
# status text retains at least WCAG AA contrast against the background.
|
||||
|
||||
foreground: &foreground "#383838"
|
||||
background: &background "#eeeeee"
|
||||
focus: &focus "#181818"
|
||||
pending: &pending "#606060"
|
||||
unhealthy: &unhealthy "#181818"
|
||||
muted: &muted "#686868"
|
||||
|
||||
k9s:
|
||||
body:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
logoColor: *foreground
|
||||
prompt:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
suggestColor: *pending
|
||||
info:
|
||||
fgColor: *foreground
|
||||
sectionColor: *focus
|
||||
help:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
keyColor: *focus
|
||||
numKeyColor: *pending
|
||||
sectionColor: *foreground
|
||||
dialog:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
buttonFgColor: *background
|
||||
buttonBgColor: *foreground
|
||||
buttonFocusFgColor: *background
|
||||
buttonFocusBgColor: *focus
|
||||
labelFgColor: *pending
|
||||
fieldFgColor: *foreground
|
||||
frame:
|
||||
border:
|
||||
fgColor: *muted
|
||||
focusColor: *focus
|
||||
menu:
|
||||
fgColor: *foreground
|
||||
keyColor: *focus
|
||||
numKeyColor: *pending
|
||||
crumbs:
|
||||
fgColor: *background
|
||||
bgColor: *foreground
|
||||
activeColor: *background
|
||||
status:
|
||||
newColor: *foreground
|
||||
modifyColor: *foreground
|
||||
addColor: *foreground
|
||||
pendingColor: *pending
|
||||
errorColor: *unhealthy
|
||||
highlightColor: *focus
|
||||
killColor: *unhealthy
|
||||
completedColor: *muted
|
||||
title:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
highlightColor: *focus
|
||||
counterColor: *pending
|
||||
filterColor: *foreground
|
||||
views:
|
||||
charts:
|
||||
bgColor: *background
|
||||
defaultDialColors:
|
||||
- *foreground
|
||||
- *unhealthy
|
||||
defaultChartColors:
|
||||
- *foreground
|
||||
- *unhealthy
|
||||
table:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
cursorFgColor: *background
|
||||
cursorBgColor: *foreground
|
||||
markColor: *focus
|
||||
header:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
sorterColor: *focus
|
||||
selectedSortColumnColor: *pending
|
||||
xray:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
cursorColor: *focus
|
||||
graphicColor: *pending
|
||||
showIcons: false
|
||||
yaml:
|
||||
keyColor: *foreground
|
||||
colonColor: *muted
|
||||
valueColor: *pending
|
||||
logs:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
indicator:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
toggleOnColor: *focus
|
||||
toggleOffColor: *muted
|
||||
help:
|
||||
fgColor: *foreground
|
||||
bgColor: *background
|
||||
indicator:
|
||||
fgColor: *focus
|
||||
@@ -11,7 +11,6 @@ vim.wo.relativenumber = true
|
||||
vim.g.mapleader = ' '
|
||||
vim.o.splitright = true
|
||||
vim.g.clipboard = "osc52"
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
-- vim.o.scrolloff = 999
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspCompletion', { clear = true }),
|
||||
callback = function(ev)
|
||||
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
||||
if client:supports_method('textDocument/completion') then
|
||||
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Enable language servers
|
||||
local servers = { 'lua_ls', 'pyright', 'gopls', 'clangd', 'helm_ls', 'bashls', 'angularls', 'djls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
@@ -24,11 +34,27 @@ vim.lsp.config('cssls', {
|
||||
vim.lsp.enable('cssls')
|
||||
|
||||
-- TypeScript LSP
|
||||
vim.lsp.config('ts_ls', {
|
||||
filetypes = { "typescript", "typescriptreact", "javascript", "javascriptreact", "html" },
|
||||
local typescript_lsp_root = vim.fn.expand("~/.local/share/typescript-lsp")
|
||||
vim.lsp.config("ts_ls", {
|
||||
cmd = {
|
||||
vim.fs.joinpath(typescript_lsp_root, "node_modules", ".bin", "typescript-language-server"),
|
||||
"--stdio",
|
||||
},
|
||||
capabilities = capabilities,
|
||||
init_options = {
|
||||
hostInfo = "neovim",
|
||||
tsserver = {
|
||||
path = vim.fs.joinpath(
|
||||
typescript_lsp_root,
|
||||
"node_modules",
|
||||
"typescript",
|
||||
"lib",
|
||||
"tsserver.js"
|
||||
),
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable('ts_ls')
|
||||
vim.lsp.enable("ts_ls")
|
||||
|
||||
-- JSON LSP
|
||||
vim.lsp.config('jsonls', {
|
||||
|
||||
@@ -26,6 +26,7 @@ vim.keymap.set('n', '<leader>z', ':ZenMode<CR>', { silent = true })
|
||||
|
||||
-- Language shortcuts
|
||||
vim.keymap.set('i', '<C-e>', 'if err != nil {}<Left>', { noremap = true })
|
||||
vim.keymap.set('i', '<C-n>', '<C-x><C-o>', { silent = true })
|
||||
|
||||
vim.cmd [[autocmd BufWritePre *.go lua vim.lsp.buf.format()]]
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ vim.g.mapleader = ' '
|
||||
vim.o.splitright = true
|
||||
vim.o.maxmempattern = 100000
|
||||
vim.g.clipboard = "osc52"
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
|
||||
vim.cmd([[
|
||||
autocmd ColorScheme * highlight Statement cterm=NONE ctermfg=5
|
||||
@@ -64,4 +63,3 @@ vim.cmd([[
|
||||
-- colorscheme default
|
||||
-- ]])
|
||||
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
|
||||
|
||||
|
||||
Reference in New Issue
Block a user