This commit is contained in:
Vasili Svirydau
2022-04-28 17:05:59 +00:00
parent 4a9f7be2ef
commit 8c68a09b15
14 changed files with 59 additions and 15 deletions

View File

@@ -0,0 +1 @@
set commentstring=//%s

4
after/plugin/fzf.vim Normal file
View File

@@ -0,0 +1,4 @@
" fzf file fuzzy search that respects .gitignore
" If in git directory, show only files that are committed, staged, or unstaged
" else use regular :Files
nnoremap <expr> <C-p> (len(system('git rev-parse')) ? ':Files' : ':GFiles --exclude-standard --others --cached')."\<cr>"

9
after/plugin/grep.vim Normal file
View File

@@ -0,0 +1,9 @@
" Remap ctrl+p to fzf
if exists('g:loaded_fzf')
" nmap <C-P> :FZF<CR>
" fzf file fuzzy search that respects .gitignore
" If in git directory, show only files that are committed, staged, or unstaged
" else use regular :Files
nnoremap <expr> <C-p> (len(system('git rev-parse')) ? ':Files' : ':GFiles --exclude-standard --others --cached')."\<cr>"
endif

View File

@@ -1,6 +1,10 @@
{
"coc.preferences.previewAutoClose": false,
"coc.preferences.hoverTarget": "echo",
// "coc.preferences.hoverTarget": "echo",
"tsserver.log": "off",
"tsserver.trace.server":"off"
"fsharp.log": "off",
"tsserver.trace.server":"off",
"elixirLS.dialyzerEnabled": false,
"coc.preferences.extensionUpdateCheck": "daily",
"diagnostic.displayByAle": true,
}

View File

@@ -17,6 +17,9 @@ if(s:have_plug)
Plug 'tpope/vim-sensible' " Sensible defaults for vim
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'ctrlpvim/ctrlp.vim' " Fuzzy search
Plug 'editorconfig/editorconfig-vim' " EditorConfig.org support
if executable('ag')
@@ -45,7 +48,7 @@ if(s:have_plug)
" Plug 'sotte/presenting.vim' " Slides
if v:version >= 800
Plug 'w0rp/ale' " Asynchronous Linting
Plug 'dense-analysis/ale' " Asynchronous Linting
Plug 'sbdchd/neoformat' " Automatic code formatting
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'Shougo/deoplete.nvim' " Autocomplete Support
@@ -72,10 +75,17 @@ let g:loaded_netrwPlugin = 1 " Disable netrw
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#ale#enabled = 1
let g:ale_sign_column_always = 1
let g:ale_sign_error = ''
let g:ale_sign_warning = ''
let g:ale_linters_explicit = 1
let g:ale_javascript_eslint_executable = 'eslint_d'
let g:ale_javascript_eslint_use_global = 1
let g:ale_disable_lsp = 1
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_insert_leave = 0
let g:coverage_json_report_path = 'coverage/coverage-final.json'
let g:coverage_sign_covered = ''
@@ -85,3 +95,5 @@ let g:signify_vcs_list = [ 'git' ]
let g:neoformat_enabled_html = ['prettier']
let g:neoformat_enabled_nginx = ['nginxbeautifier']
" let g:coc_node_path = '/usr/bin/node'

2
ftplugin/bash.vim Normal file
View File

@@ -0,0 +1,2 @@
let b:ale_linters = ['shellcheck']

2
ftplugin/dockerfile.vim Normal file
View File

@@ -0,0 +1,2 @@
let b:ale_linters = ['hadolint']

2
ftplugin/elixir.vim Normal file
View File

@@ -0,0 +1,2 @@
" let b:ale_linters = ['credo', 'dialyxir']
let b:ale_linters = ['dialyxir']

2
ftplugin/javascript.vim Normal file
View File

@@ -0,0 +1,2 @@
let b:ale_linters = ['eslint']

1
ftplugin/ruby.vim Normal file
View File

@@ -0,0 +1 @@
let b:ale_linters = ['rubocop', 'reek']

2
ftplugin/sh.vim Normal file
View File

@@ -0,0 +1,2 @@
let b:ale_linters = ['shellcheck']

2
ftplugin/typescript.vim Normal file
View File

@@ -0,0 +1,2 @@
let b:ale_linters = ['eslint']

View File

@@ -1,13 +1,6 @@
" Set up CtrlP with faster alternative, if possible
if executable('ag')
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast, respects .gitignore
" and .agignore. Ignores hidden files by default.
let g:ctrlp_user_command = 'ag %s -l --nocolor -f -g ""'
let g:ctrlp_use_caching = 0
finish
endif
" Set up CtrlP with faster alternative, if possible
"ctrl+p ignore files in .gitignore
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
if executable('rg')
set grepprg=rg\ --color=never
@@ -17,5 +10,12 @@ if executable('rg')
finish
endif
"ctrl+p ignore files in .gitignore
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
if executable('ag')
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast, respects .gitignore
" and .agignore. Ignores hidden files by default.
let g:ctrlp_user_command = 'ag %s -l --nocolor -f -g ""'
let g:ctrlp_use_caching = 0
finish
endif

1
plugin/langmap.vim Normal file
View File

@@ -0,0 +1 @@
" set langmap=йЙцЦуУкКеЕнНгГшШщЩзЗхХъЪфФыЫвВаАпПрРоОлЛдДжЖэЭяЯчЧсСмМиИтТьЬбБюЮ.\\,;qQwWeErRtTyYuUiIoOpP[{]}aAsSdDfFgGhHjJkKlL;:'\"zZxXcCvVbBnNmM\\,<.>/?