aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc15
1 files changed, 8 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index af23008..e0db18a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -62,6 +62,7 @@ nnoremap <leader>v : Vlist<CR>
set clipboard=unnamed,unnamedplus " just past in with out needing "*
set autoread
set exrc
+set cuc
set secure
set scrolloff=1
set history=799
@@ -116,8 +117,8 @@ endfunction
" }}}
" Folding {{{
if has('folding')
- "set foldmethod=marker " default
- set foldmethod=syntax
+ set foldmethod=marker " default
+ " set foldmethod=syntax
" set foldmarker=#\ {{{,#\ }}}
set viewoptions=folds,options,cursor,unix,slash
endif
@@ -178,13 +179,13 @@ autocmd BufEnter *.html,*.slim if s:is_tailwind() |
\ endif
" }}}
" ALE {{{
-let g:ale_enabled = 0
+let g:ale_enabled = 1
let g:ale_set_balloons = 0
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
let g:ale_sign_error = '!'
let g:ale_sign_warning = '?'
let g:ale_lint_on_text_changed = 1
-let g:ale_hover_cursor = 0
+let g:ale_hover_cursor = 1
let g:ale_virtualtext_cursor = 'disabled'
let g:ale_sign_column_always = 1
let g:ale_open_list = 0
@@ -207,10 +208,10 @@ let g:ale_linters = {'python': ['pyright', 'flake8', 'mypy'],
\}
let g:ale_fixers = {
\ 'python': ['autoimport', 'isort', 'yapf', 'black'],
-\ 'javascript': ['eslint'],
+\ 'javascript': ['eslint'],
\ 'go': ['gofmt', 'goimports', 'gopls'],
-\ 'cpp': ['clang-format'],
-\ 'c': ['clang-format'],
+\ 'cpp': ['clang-format'],
+\ 'c': ['clang-format'],
\ 'rust': ['rustfmt']
\ }
let g:ale_python_mypy_ignore_invalid_syntax = 1