diff --git a/.bash_k8s_aliases b/.bash_k8s_aliases new file mode 100644 index 0000000..fd669eb --- /dev/null +++ b/.bash_k8s_aliases @@ -0,0 +1,10 @@ +#!/bin/bash + +k8s-configmap-from-dir () { + local name=$1 + shift + local dir=$1 + shift + if + kubectl create configmap "$1" --from-file="$2" -o yaml --dry-run "$@" +} diff --git a/.vim/nvim.lua b/.vim/nvim.lua index ff6ad32..f60287d 100644 --- a/.vim/nvim.lua +++ b/.vim/nvim.lua @@ -168,9 +168,11 @@ local dropdown = require'telescope.themes'.get_dropdown({ --winblend = 10 }) -git_live_grep = function(conf) - local opt = dropdown - opt.cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1] +live_grep_repo = function(conf) + --local opt = dropdown + local opt = { + cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1] + } for k,v in pairs(conf) do opt[k] = v end builtin.live_grep(opt) end diff --git a/.vimrc b/.vimrc index 8204cee..7493ea5 100644 --- a/.vimrc +++ b/.vimrc @@ -219,6 +219,9 @@ Plug 'glepnir/lspsaga.nvim' Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'kristijanhusak/defx-icons' +"Plug 'ggandor/lightspeed.nvim' +Plug 'justinmk/vim-sneak' + Plug 'Shougo/unite.vim' " TODO: Look into Coqtail, same author Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'} @@ -391,6 +394,13 @@ let g:Tb_MaxSize=0 let g:Tb_MapCTabSwitchBufs = 1 let g:UseGooglePythonSettings = 0 +" * sneak.vim +"let g:sneak#label = 1 +map f Sneak_f +map F Sneak_F +map t Sneak_t +map T Sneak_T + " * Jedi let g:jedi#goto_command = "gd" "let g:jedi#completions_enabled = 0 @@ -1002,7 +1012,7 @@ nnoremap aa :RgRoot! "nnoremap :Files! `git rev-parse --show-toplevel` "nnoremap :GFiles nnoremap lua require('telescope.builtin').git_files() -nnoremap ag lua git_live_grep{ word_match = "-w", only_sort_text = true, search = ''} +nnoremap ag lua live_grep_repo{ word_match = "-w", only_sort_text = true, search = ''} nnoremap aw lua git_grep_word{ word_match = "-w", only_sort_text = true } " For C++ -- A is a great plugin which allows you to jump from the c file to the