Merge branch 'master' of git.barakmich.com:/barak/dotfiles
This commit is contained in:
commit
84bc65982f
3 changed files with 26 additions and 4 deletions
10
.bash_k8s_aliases
Normal file
10
.bash_k8s_aliases
Normal file
|
|
@ -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 "$@"
|
||||||
|
}
|
||||||
|
|
@ -168,9 +168,11 @@ local dropdown = require'telescope.themes'.get_dropdown({
|
||||||
--winblend = 10
|
--winblend = 10
|
||||||
})
|
})
|
||||||
|
|
||||||
git_live_grep = function(conf)
|
live_grep_repo = function(conf)
|
||||||
local opt = dropdown
|
--local opt = dropdown
|
||||||
opt.cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
local opt = {
|
||||||
|
cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
||||||
|
}
|
||||||
for k,v in pairs(conf) do opt[k] = v end
|
for k,v in pairs(conf) do opt[k] = v end
|
||||||
builtin.live_grep(opt)
|
builtin.live_grep(opt)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
12
.vimrc
12
.vimrc
|
|
@ -219,6 +219,9 @@ Plug 'glepnir/lspsaga.nvim'
|
||||||
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'kristijanhusak/defx-icons'
|
Plug 'kristijanhusak/defx-icons'
|
||||||
|
|
||||||
|
"Plug 'ggandor/lightspeed.nvim'
|
||||||
|
Plug 'justinmk/vim-sneak'
|
||||||
|
|
||||||
Plug 'Shougo/unite.vim'
|
Plug 'Shougo/unite.vim'
|
||||||
" TODO: Look into Coqtail, same author
|
" TODO: Look into Coqtail, same author
|
||||||
Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'}
|
Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'}
|
||||||
|
|
@ -391,6 +394,13 @@ let g:Tb_MaxSize=0
|
||||||
let g:Tb_MapCTabSwitchBufs = 1
|
let g:Tb_MapCTabSwitchBufs = 1
|
||||||
let g:UseGooglePythonSettings = 0
|
let g:UseGooglePythonSettings = 0
|
||||||
|
|
||||||
|
" * sneak.vim
|
||||||
|
"let g:sneak#label = 1
|
||||||
|
map f <Plug>Sneak_f
|
||||||
|
map F <Plug>Sneak_F
|
||||||
|
map t <Plug>Sneak_t
|
||||||
|
map T <Plug>Sneak_T
|
||||||
|
|
||||||
" * Jedi
|
" * Jedi
|
||||||
let g:jedi#goto_command = "gd"
|
let g:jedi#goto_command = "gd"
|
||||||
"let g:jedi#completions_enabled = 0
|
"let g:jedi#completions_enabled = 0
|
||||||
|
|
@ -1002,7 +1012,7 @@ nnoremap <silent> <Leader>aa :<C-u>RgRoot!<CR>
|
||||||
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
|
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
|
||||||
"nnoremap <C-k> :<C-u>GFiles<CR>
|
"nnoremap <C-k> :<C-u>GFiles<CR>
|
||||||
nnoremap <C-k> <cmd>lua require('telescope.builtin').git_files()<cr>
|
nnoremap <C-k> <cmd>lua require('telescope.builtin').git_files()<cr>
|
||||||
nnoremap <silent> <Leader>ag <cmd>lua git_live_grep{ word_match = "-w", only_sort_text = true, search = ''}<cr>
|
nnoremap <silent> <Leader>ag <cmd>lua live_grep_repo{ word_match = "-w", only_sort_text = true, search = ''}<cr>
|
||||||
nnoremap <silent> <Leader>aw <cmd>lua git_grep_word{ word_match = "-w", only_sort_text = true }<cr>
|
nnoremap <silent> <Leader>aw <cmd>lua git_grep_word{ word_match = "-w", only_sort_text = true }<cr>
|
||||||
|
|
||||||
" For C++ -- A is a great plugin which allows you to jump from the c file to the
|
" For C++ -- A is a great plugin which allows you to jump from the c file to the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue