aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/fish/config.fish4
-rw-r--r--config/htop/htoprc2
-rw-r--r--config/k9s/skin.yml90
-rw-r--r--config/nvim/lua/plugins.lua28
4 files changed, 110 insertions, 14 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish
index e3e9e5b..f99b3ad 100644
--- a/config/fish/config.fish
+++ b/config/fish/config.fish
@@ -28,6 +28,7 @@ set -gx XDG_CONFIG_HOME "$HOME/.config"
set -gx XDG_DATA_HOME "$HOME/.local/share"
set -gx XDG_CACHE_HOME "$HOME/.cache"
# config
+set -gx KUBECONFIG "$XDG_CONFIG_HOME/kubectl/config"
set -gx XMONAD_CONFIG_HOME "$XDG_CONFIG_HOME/xmonad"
set -gx XMONAD_DATA_HOME "$XDG_DATA_HOME/xmonad"
set -gx XMONAD_CACHE_HOME "$XDG_CACHE_HOME/xmonad"
@@ -190,6 +191,9 @@ if status is-interactive
abbr ytdlp 'yt-dlp --audio-format mp3 -i --output "%(playlist_index)s-%(title)s.%(ext)s"'
abbr ytdla 'yt-dlp --audio-format mp3 -i -x -f bestaudio/best --output "%(playlist_index)s-%(title)s.%(ext)s"'
+ # kubectl
+ alias k 'kubectl'
+
# wifi
function wificonnect
nmcli device wifi connect "$argv[1]" password "$argv[2]"
diff --git a/config/htop/htoprc b/config/htop/htoprc
index d94e51f..118222b 100644
--- a/config/htop/htoprc
+++ b/config/htop/htoprc
@@ -56,7 +56,7 @@ screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU P
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
-.sort_key=IO_RATE
+.sort_key=IO_WRITE_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
diff --git a/config/k9s/skin.yml b/config/k9s/skin.yml
new file mode 100644
index 0000000..7eaf596
--- /dev/null
+++ b/config/k9s/skin.yml
@@ -0,0 +1,90 @@
+# K9s Gruvbox Dark Skin Contributed by [@indiebrain](https://github.com/indiebrain)
+foreground: &foreground "#ebdbb2"
+background: &background "#272727"
+current_line: &current_line "#ebdbb2"
+selection: &selection "#3c3735"
+comment: &comment "#bdad93"
+cyan: &cyan "#689d69"
+green: &green "#989719"
+orange: &orange "#d79920"
+magenta: &magenta "#b16185"
+blue: &blue "#448488"
+red: &red "#cc231c"
+
+k9s:
+ body:
+ fgColor: *foreground
+ bgColor: *background
+ logoColor: *blue
+ info:
+ fgColor: *magenta
+ sectionColor: *foreground
+ dialog:
+ fgColor: *foreground
+ bgColor: *background
+ buttonFgColor: *foreground
+ buttonBgColor: *magenta
+ buttonFocusFgColor: white
+ buttonFocusBgColor: *cyan
+ labelFgColor: *orange
+ fieldFgColor: *foreground
+ frame:
+ border:
+ fgColor: *selection
+ focusColor: *current_line
+ menu:
+ fgColor: *foreground
+ keyColor: *magenta
+ numKeyColor: *magenta
+ crumbs:
+ fgColor: *foreground
+ bgColor: *comment
+ activeColor: *blue
+ status:
+ newColor: *cyan
+ modifyColor: *blue
+ addColor: *green
+ errorColor: *red
+ highlightcolor: *orange
+ killColor: *comment
+ completedColor: *comment
+ title:
+ fgColor: *foreground
+ bgColor: *background
+ highlightColor: *orange
+ counterColor: *blue
+ filterColor: *magenta
+ views:
+ charts:
+ bgColor: background
+ defaultDialColors:
+ - *blue
+ - *red
+ defaultChartColors:
+ - *blue
+ - *red
+ table:
+ fgColor: *foreground
+ bgColor: *background
+ cursorFgColor: *foreground
+ cursorBgColor: *current_line
+ header:
+ fgColor: *foreground
+ bgColor: *background
+ sorterColor: *selection
+ xray:
+ fgColor: *foreground
+ bgColor: *background
+ cursorColor: *current_line
+ graphicColor: *blue
+ showIcons: false
+ yaml:
+ keyColor: *magenta
+ colonColor: *blue
+ valueColor: *foreground
+ logs:
+ fgColor: *foreground
+ bgColor: *background
+ indicator:
+ fgColor: *foreground
+ bgColor: *background
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index 0820aeb..b4cb0ee 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -68,13 +68,12 @@ return require("packer").startup(function()
-- nvim lsp configuration
use {
"neovim/nvim-lspconfig",
- ft = {"rust", "python", "c", "cpp", "lua", "go", "haskell", "ocaml", "zig"},
+ ft = {"rust", "python", "c", "cpp", "lua", "go", "haskell", "ocaml", "zig", "yaml"},
config = function()
vim.diagnostic.config {
signs = false,
update_in_insert = false,
}
-
local on_attach = function(_, bufnr)
local opts = { noremap = true, silent = true }
local map = function(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
@@ -93,7 +92,6 @@ return require("packer").startup(function()
local capabilities = require("cmp_nvim_lsp").default_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
-
-- $ go install golang.org/x/tools/gopls
lspconfig.gopls.setup {
on_attach = on_attach,
@@ -128,7 +126,6 @@ return require("packer").startup(function()
"BufWritePre",
{ callback = go_import_callback, pattern = "*.go", group = augroup }
)
-
-- lspconfig.clangd.setup { on_attach = on_attach }
lspconfig.rust_analyzer.setup { on_attach = on_attach }
-- need python-lsp-server and pyls-flake8
@@ -146,13 +143,6 @@ return require("packer").startup(function()
},
},
}
-
- -- brew install haskell-language-server
- lspconfig.hls.setup { on_attach = on_attach }
-
- -- opam install ocaml-lsp-server
- lspconfig.ocamllsp.setup { on_attach = on_attach }
-
-- package lua-language-server on ArchLinux
lspconfig.lua_ls.setup {
on_attach = on_attach ,
@@ -178,11 +168,23 @@ return require("packer").startup(function()
}
},
}
-
+ -- brew install haskell-language-server
+ lspconfig.hls.setup { on_attach = on_attach }
+ -- opam install ocaml-lsp-server
+ lspconfig.ocamllsp.setup { on_attach = on_attach }
lspconfig.clangd.setup { on_attach = on_attach }
-
-- pacman -S zls
lspconfig.zls.setup{}
+ -- pacman -S yaml-language-server
+ lspconfig.yamlls.setup {
+ settings = {
+ yaml = {
+ schemas = {
+ ["https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.17.0-standalone-strict/all.json"] = "/*.k8s.yaml",
+ }
+ }
+ }
+ }
end,
}