misc
This commit is contained in:
parent
5b1eb42787
commit
4884763b24
4 changed files with 52 additions and 14 deletions
27
dot_config/bat/config
Normal file
27
dot_config/bat/config
Normal file
|
@ -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"
|
|
@ -80,7 +80,14 @@ local server_configs = function()
|
||||||
schemas = vim.tbl_extend('force',
|
schemas = vim.tbl_extend('force',
|
||||||
require('schemastore').yaml.schemas(),
|
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',
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,20 +47,21 @@ return {
|
||||||
'lukas-reineke/indent-blankline.nvim',
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
event = 'VeryLazy',
|
event = 'VeryLazy',
|
||||||
config = true,
|
config = true,
|
||||||
|
main = 'ibl',
|
||||||
opts = {
|
opts = {
|
||||||
show_current_context = true,
|
-- show_current_context = true,
|
||||||
show_current_context_start = false,
|
-- show_current_context_start = false,
|
||||||
filetype_exclude = {
|
-- filetype_exclude = {
|
||||||
'OverseerList',
|
-- 'OverseerList',
|
||||||
'OverseerForm',
|
-- 'OverseerForm',
|
||||||
'lspinfo',
|
-- 'lspinfo',
|
||||||
'packer',
|
-- 'packer',
|
||||||
'checkhealth',
|
-- 'checkhealth',
|
||||||
'help',
|
-- 'help',
|
||||||
'man',
|
-- 'man',
|
||||||
'norg',
|
-- 'norg',
|
||||||
'',
|
-- '',
|
||||||
},
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
|
|
||||||
# Right prompt segments.
|
# Right prompt segments.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
||||||
|
kubecontext
|
||||||
command_execution_time # previous command duration
|
command_execution_time # previous command duration
|
||||||
# context # user@host
|
# context # user@host
|
||||||
time # current time
|
time # current time
|
||||||
|
@ -109,6 +110,8 @@
|
||||||
# Blue current directory.
|
# Blue current directory.
|
||||||
typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue
|
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.
|
# 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"
|
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.
|
# Context format when not root: user@host. The whole thing grey.
|
||||||
|
|
Loading…
Add table
Reference in a new issue