diff --git a/dot_config/bat/config b/dot_config/bat/config new file mode 100644 index 0000000..5431b22 --- /dev/null +++ b/dot_config/bat/config @@ -0,0 +1,27 @@ +# This is `bat`s configuration file. Each line either contains a comment or +# a command-line option that you want to pass to `bat` by default. You can +# run `bat --help` to get a list of all possible configuration options. + +# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes` +# for a list of all available themes +--theme="gruvbox-dark" + +-p + +# Enable this to use italic text on the terminal. This is not supported on all +# terminal emulators (like tmux, by default): +#--italic-text=always + +# Uncomment the following line to disable automatic paging: +#--paging=never + +# Uncomment the following line if you are using less version >= 551 and want to +# enable mouse scrolling support in `bat` when running inside tmux. This might +# disable text selection, unless you press shift. +#--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse" + +# Syntax mappings: map a certain filename pattern to a language. +# Example 1: use the C++ syntax for Arduino .ino files +# Example 2: Use ".gitignore"-style highlighting for ".ignore" files +#--map-syntax "*.ino:C++" +#--map-syntax ".ignore:Git Ignore" diff --git a/dot_config/nvim/lua/configs/packages/lsp.lua b/dot_config/nvim/lua/configs/packages/lsp.lua index 5df951b..c1df8f6 100644 --- a/dot_config/nvim/lua/configs/packages/lsp.lua +++ b/dot_config/nvim/lua/configs/packages/lsp.lua @@ -80,7 +80,14 @@ local server_configs = function() schemas = vim.tbl_extend('force', require('schemastore').yaml.schemas(), { - kubernetes = {'k8s/*.yaml', '**/k8s/**/*.yaml', 'kubernetes/*.yaml', }, + kubernetes = { + '**/k8s/**/!(kustomization).yaml', + '**/k8s/**/!(kustomization).yml', + '**/kubernetes/!(kustomization).yaml', + '**/kubernetes/!(kustomization).yml', + '**/kustomize/**/!(kustomization).yaml', + '**/kustomize/**/!(kustomization).yml', + }, }), }, }, diff --git a/dot_config/nvim/lua/configs/packages/misc.lua b/dot_config/nvim/lua/configs/packages/misc.lua index b32386a..02c9619 100644 --- a/dot_config/nvim/lua/configs/packages/misc.lua +++ b/dot_config/nvim/lua/configs/packages/misc.lua @@ -47,20 +47,21 @@ return { 'lukas-reineke/indent-blankline.nvim', event = 'VeryLazy', config = true, + main = 'ibl', opts = { - show_current_context = true, - show_current_context_start = false, - filetype_exclude = { - 'OverseerList', - 'OverseerForm', - 'lspinfo', - 'packer', - 'checkhealth', - 'help', - 'man', - 'norg', - '', - }, + -- show_current_context = true, + -- show_current_context_start = false, + -- filetype_exclude = { + -- 'OverseerList', + -- 'OverseerForm', + -- 'lspinfo', + -- 'packer', + -- 'checkhealth', + -- 'help', + -- 'man', + -- 'norg', + -- '', + -- }, }, }, diff --git a/dot_config/zsh/include/p10k.zsh b/dot_config/zsh/include/p10k.zsh index 59d41db..52db502 100644 --- a/dot_config/zsh/include/p10k.zsh +++ b/dot_config/zsh/include/p10k.zsh @@ -71,6 +71,7 @@ # Right prompt segments. typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( + kubecontext command_execution_time # previous command duration # context # user@host time # current time @@ -109,6 +110,8 @@ # Blue current directory. typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue + typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|k9s' + # Context format when root: user@host. The first part white, the rest grey. typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f" # Context format when not root: user@host. The whole thing grey.