mirror of
https://github.com/mentos1386/dotfiles.git
synced 2025-02-16 14:23:37 +00:00
fix nerdtree and ctrlp not showing all files/dirs; fix autocompletion for github workflows
This commit is contained in:
parent
f7491742c2
commit
6ad0219033
3 changed files with 31 additions and 5 deletions
|
@ -7,3 +7,8 @@
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
[filter "lfs"]
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
"coc.preferences.formatOnType": true,
|
"coc.preferences.formatOnType": true,
|
||||||
"yaml.schemaStore.enable": true,
|
"yaml.schemaStore.enable": true,
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"kubernetes": "/*.yaml"
|
"kubernetes": [
|
||||||
|
"/kubernetes/**/*.yaml",
|
||||||
|
"/k8s/**/*.yaml"
|
||||||
|
],
|
||||||
|
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/*.yaml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
25
vim/vimrc
25
vim/vimrc
|
@ -9,6 +9,7 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||||
\| PlugInstall --sync | source $MYVIMRC
|
\| PlugInstall --sync | source $MYVIMRC
|
||||||
\| endif
|
\| endif
|
||||||
|
|
||||||
|
"""""
|
||||||
"--- Plugins
|
"--- Plugins
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
|
@ -24,11 +25,9 @@ Plug 'Yggdroot/indentLine'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
" Search/Files
|
" Search/Files
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'ctrlpvim/ctrlp.vim'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
" Ignore/Edit files
|
" Ignore/Edit files
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
|
||||||
Plug 'vim-scripts/gitignore'
|
Plug 'vim-scripts/gitignore'
|
||||||
" Languages
|
" Languages
|
||||||
Plug 'fatih/vim-go'
|
Plug 'fatih/vim-go'
|
||||||
|
@ -42,6 +41,7 @@ Plug 'kevinoid/vim-jsonc'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
"""""
|
||||||
"--- CodeServer Configurations
|
"--- CodeServer Configurations
|
||||||
let g:coc_global_extensions = [
|
let g:coc_global_extensions = [
|
||||||
\ 'coc-tsserver',
|
\ 'coc-tsserver',
|
||||||
|
@ -80,6 +80,7 @@ nmap <leader>ac <Plug>(coc-codeaction)
|
||||||
" Apply AutoFix to problem on the current line.
|
" Apply AutoFix to problem on the current line.
|
||||||
nmap <leader>qf <Plug>(coc-fix-current)
|
nmap <leader>qf <Plug>(coc-fix-current)
|
||||||
|
|
||||||
|
"""""
|
||||||
"--- TMUX/Clipboard fixes
|
"--- TMUX/Clipboard fixes
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set t_ut=
|
set t_ut=
|
||||||
|
@ -106,6 +107,7 @@ if exists('##TextYankPost')
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
"""""
|
||||||
"--- VIM Configuration
|
"--- VIM Configuration
|
||||||
set encoding=UTF-8
|
set encoding=UTF-8
|
||||||
set autoread " will re-read opened file if changed externaly
|
set autoread " will re-read opened file if changed externaly
|
||||||
|
@ -135,16 +137,28 @@ set cmdheight=1
|
||||||
set hidden
|
set hidden
|
||||||
set shortmess+=c
|
set shortmess+=c
|
||||||
|
|
||||||
|
"""""
|
||||||
"- Custom commands
|
"- Custom commands
|
||||||
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||||
|
|
||||||
|
"""""
|
||||||
"- CtrlP
|
"- CtrlP
|
||||||
|
let g:ctrlp_max_files=0
|
||||||
|
let g:ctrlp_max_depth=40
|
||||||
|
let g:ctrlp_show_hidden=1
|
||||||
let g:ctrlp_custom_ignore = {
|
let g:ctrlp_custom_ignore = {
|
||||||
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$',
|
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$',
|
||||||
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
|
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
""""""
|
||||||
"- NERDTree
|
"- NERDTree
|
||||||
|
let NERDTreeShowHidden=1
|
||||||
|
let NERDTreeIgnore=['\.git$[[dir]]', 'node_modules$[[dir]]']
|
||||||
|
let NERDTreeRespectWildIgnore=1
|
||||||
|
let NERDTreeStatusline="NERDTree"
|
||||||
|
let NERDTreeMinimalUI=1
|
||||||
|
let NERDTreeCascadeSingleChildDir=1
|
||||||
nnoremap <leader>n :NERDTreeFocus<CR>
|
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||||
nnoremap <C-n> :NERDTree<CR>
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
nnoremap <C-f> :NERDTreeFind<CR>
|
nnoremap <C-f> :NERDTreeFind<CR>
|
||||||
|
@ -157,12 +171,15 @@ function NERDTreeToggleAndRefresh()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"""""
|
||||||
"- Keybindings
|
"- Keybindings
|
||||||
let mapleader = "'"
|
nnoremap <SPACE> <Nop>
|
||||||
|
let mapleader = " "
|
||||||
|
|
||||||
let g:ctrlp_map = '<c-p>'
|
let g:ctrlp_map = '<c-p>'
|
||||||
let g:ctrlp_cmd = 'CtrlP'
|
let g:ctrlp_cmd = 'CtrlP'
|
||||||
|
|
||||||
|
"""""
|
||||||
"- Visuals
|
"- Visuals
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set number
|
set number
|
||||||
|
|
Loading…
Reference in a new issue