update colors in vim/tmux and linters for ALE

This commit is contained in:
James Dixon 2020-10-23 12:42:52 -04:00
parent 08e297e08a
commit 80588655b1
2 changed files with 20 additions and 25 deletions

View File

@ -15,7 +15,7 @@ set -sg escape-time 0
# set -g focus-events on
# 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 status-bg black

View File

@ -150,7 +150,7 @@ call plug#begin(pluginDir)
"git
Plug 'tpope/vim-fugitive'
"visual
Plug 'flazz/vim-colorschemes'
"Plug 'flazz/vim-colorschemes'
"linting
Plug 'w0rp/ale'
@ -181,25 +181,26 @@ let g:netrw_usetab = 1
let g:netrw_browsex_viewer = "xdg-open"
let g:NetrwIsOpen = 0 "for toggle function
let g:netrw_nogx = 1
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
"ale
let g:ale_linters = {
\ 'javascript': ['prettier', 'eslint'],
\ 'python': ['flake8', 'pylint'],
\ 'javascript': ['eslint'],
\ 'markdown': ['mdl', 'write-good']
\}
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['eslint'],
\ 'python': ['yapf', 'black'],
\ 'javascript': ['prettier', 'eslint'],
\ 'markdown': ['prettier']
\}
let g:ale_sign_error = '->'
let g:ale_sign_warning = '--'
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
let g:vim_markdown_folding_disabled = 1
@ -207,6 +208,13 @@ let g:vim_markdown_no_default_key_mappings = 1
let g:vim_markdown_toc_autofit = 1
"}}}
"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
@ -229,8 +237,6 @@ let g:vim_markdown_toc_autofit = 1
"leader key
let mapleader=' '
"normal/visual
"-------------
"paste and search
nnoremap <silent><leader><space> :let @/ = ""<CR>
nnoremap <leader>p :set invpaste<CR>
@ -253,10 +259,12 @@ nnoremap =j :%!python -m json.tool<CR>
"plugin keybinds
nnoremap <silent><leader>e :call ToggleNetrw()<CR>
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
nnoremap <leader>at :ALEToggle<CR>
nmap <leader>af <Plug>(ale_fix)
"insert mode
"-----------
inoreabbrev <expr> #!! "#!/usr/bin/env"
"}}}
@ -271,8 +279,6 @@ command! WQ wq
command! Q1 q!
"}}}
"general functions
"{{{
"toggle functions
"{{{
function! ToggleColorColumn()
@ -321,7 +327,7 @@ endfunction
"}}}
"filetype functions
"------------------{{{
"{{{
function BashSettings()
set syntax=sh
endfunction
@ -339,10 +345,7 @@ endfunction
function HtmlSettings()
syntax sync fromstart
endfunction
"}}}
"group functions
"-------------------------{{{
function SpellSettings()
setlocal spell
endfunction
@ -351,14 +354,6 @@ function HalftabSettings()
setlocal ts=2 sts=2 sw=2 expandtab
endfunction
"}}}
"}}}
"syntax/filetype settings (just in case they haven't been set yet)
"{{{
syntax on
filetype plugin indent on
runtime macros/matchit.vim
"}}}
"autocommands
"{{{