update colors in vim/tmux and linters for ALE
This commit is contained in:
parent
08e297e08a
commit
80588655b1
@ -15,7 +15,7 @@ set -sg escape-time 0
|
|||||||
# set -g focus-events on
|
# set -g focus-events on
|
||||||
|
|
||||||
# appearance
|
# appearance
|
||||||
set -g status-style "bg=black fg=white,bold"
|
set -g status-style "bg=colour16 fg=white,bold"
|
||||||
set -g window-status-current-style "fg=yellow,bold"
|
set -g window-status-current-style "fg=yellow,bold"
|
||||||
|
|
||||||
# set -g status-bg black
|
# set -g status-bg black
|
||||||
|
|||||||
@ -150,7 +150,7 @@ call plug#begin(pluginDir)
|
|||||||
"git
|
"git
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
"visual
|
"visual
|
||||||
Plug 'flazz/vim-colorschemes'
|
"Plug 'flazz/vim-colorschemes'
|
||||||
"linting
|
"linting
|
||||||
Plug 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
|
|
||||||
@ -181,25 +181,26 @@ let g:netrw_usetab = 1
|
|||||||
let g:netrw_browsex_viewer = "xdg-open"
|
let g:netrw_browsex_viewer = "xdg-open"
|
||||||
let g:NetrwIsOpen = 0 "for toggle function
|
let g:NetrwIsOpen = 0 "for toggle function
|
||||||
let g:netrw_nogx = 1
|
let g:netrw_nogx = 1
|
||||||
nmap gx <Plug>(openbrowser-smart-search)
|
|
||||||
vmap gx <Plug>(openbrowser-smart-search)
|
|
||||||
|
|
||||||
"ale
|
"ale
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'javascript': ['prettier', 'eslint'],
|
\ 'python': ['flake8', 'pylint'],
|
||||||
|
\ 'javascript': ['eslint'],
|
||||||
\ 'markdown': ['mdl', 'write-good']
|
\ 'markdown': ['mdl', 'write-good']
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'javascript': ['eslint'],
|
\ 'python': ['yapf', 'black'],
|
||||||
|
\ 'javascript': ['prettier', 'eslint'],
|
||||||
\ 'markdown': ['prettier']
|
\ 'markdown': ['prettier']
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_sign_error = '->'
|
let g:ale_sign_error = '->'
|
||||||
let g:ale_sign_warning = '--'
|
let g:ale_sign_warning = '--'
|
||||||
let g:ale_lint_on_save = 1
|
let g:ale_lint_on_save = 1
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save_ignore = 1
|
||||||
|
highlight clear SignColumn
|
||||||
|
|
||||||
"vim-markdown
|
"vim-markdown
|
||||||
let g:vim_markdown_folding_disabled = 1
|
let g:vim_markdown_folding_disabled = 1
|
||||||
@ -207,7 +208,14 @@ let g:vim_markdown_no_default_key_mappings = 1
|
|||||||
let g:vim_markdown_toc_autofit = 1
|
let g:vim_markdown_toc_autofit = 1
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" colorschemes
|
"syntax/filetype settings (just in case they haven't been set yet)
|
||||||
|
"{{{
|
||||||
|
syntax on
|
||||||
|
filetype plugin indent on
|
||||||
|
runtime macros/matchit.vim
|
||||||
|
"}}}
|
||||||
|
|
||||||
|
"colorschemes
|
||||||
" {{{
|
" {{{
|
||||||
" colorscheme 1989
|
" colorscheme 1989
|
||||||
" colorscheme PaperColor
|
" colorscheme PaperColor
|
||||||
@ -229,8 +237,6 @@ let g:vim_markdown_toc_autofit = 1
|
|||||||
"leader key
|
"leader key
|
||||||
let mapleader=' '
|
let mapleader=' '
|
||||||
|
|
||||||
"normal/visual
|
|
||||||
"-------------
|
|
||||||
"paste and search
|
"paste and search
|
||||||
nnoremap <silent><leader><space> :let @/ = ""<CR>
|
nnoremap <silent><leader><space> :let @/ = ""<CR>
|
||||||
nnoremap <leader>p :set invpaste<CR>
|
nnoremap <leader>p :set invpaste<CR>
|
||||||
@ -253,10 +259,12 @@ nnoremap =j :%!python -m json.tool<CR>
|
|||||||
|
|
||||||
"plugin keybinds
|
"plugin keybinds
|
||||||
nnoremap <silent><leader>e :call ToggleNetrw()<CR>
|
nnoremap <silent><leader>e :call ToggleNetrw()<CR>
|
||||||
|
nmap gx <Plug>(openbrowser-smart-search)
|
||||||
|
vmap gx <Plug>(openbrowser-smart-search)
|
||||||
nnoremap <leader>at :ALEToggle<CR>
|
nnoremap <leader>at :ALEToggle<CR>
|
||||||
|
nmap <leader>af <Plug>(ale_fix)
|
||||||
|
|
||||||
"insert mode
|
"insert mode
|
||||||
"-----------
|
|
||||||
inoreabbrev <expr> #!! "#!/usr/bin/env"
|
inoreabbrev <expr> #!! "#!/usr/bin/env"
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
@ -271,8 +279,6 @@ command! WQ wq
|
|||||||
command! Q1 q!
|
command! Q1 q!
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"general functions
|
|
||||||
"{{{
|
|
||||||
"toggle functions
|
"toggle functions
|
||||||
"{{{
|
"{{{
|
||||||
function! ToggleColorColumn()
|
function! ToggleColorColumn()
|
||||||
@ -321,7 +327,7 @@ endfunction
|
|||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"filetype functions
|
"filetype functions
|
||||||
"------------------{{{
|
"{{{
|
||||||
function BashSettings()
|
function BashSettings()
|
||||||
set syntax=sh
|
set syntax=sh
|
||||||
endfunction
|
endfunction
|
||||||
@ -339,10 +345,7 @@ endfunction
|
|||||||
function HtmlSettings()
|
function HtmlSettings()
|
||||||
syntax sync fromstart
|
syntax sync fromstart
|
||||||
endfunction
|
endfunction
|
||||||
"}}}
|
|
||||||
|
|
||||||
"group functions
|
|
||||||
"-------------------------{{{
|
|
||||||
function SpellSettings()
|
function SpellSettings()
|
||||||
setlocal spell
|
setlocal spell
|
||||||
endfunction
|
endfunction
|
||||||
@ -351,14 +354,6 @@ function HalftabSettings()
|
|||||||
setlocal ts=2 sts=2 sw=2 expandtab
|
setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
endfunction
|
endfunction
|
||||||
"}}}
|
"}}}
|
||||||
"}}}
|
|
||||||
|
|
||||||
"syntax/filetype settings (just in case they haven't been set yet)
|
|
||||||
"{{{
|
|
||||||
syntax on
|
|
||||||
filetype plugin indent on
|
|
||||||
runtime macros/matchit.vim
|
|
||||||
"}}}
|
|
||||||
|
|
||||||
"autocommands
|
"autocommands
|
||||||
"{{{
|
"{{{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user