Skip to content

Commit

Permalink
Many small changes
Browse files Browse the repository at this point in the history
* Use undercurl for SpellBad (helps with language server linting)
* Add ALE* commands prefixed by <leader>a
* Adjust gvimrc for mac preferences. This should probably be more
  generic so it works on my linux box, but /shrug
  • Loading branch information
pbui-patreon committed May 27, 2022
1 parent 4b30761 commit 073a2e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
11 changes: 4 additions & 7 deletions colors/idleFingers.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ hi DiffText guibg=#59B4CD ctermbg=028 ctermfg=254 cterm=bold
hi ErrorMsg guifg=#D8D8D8 guibg=#ff0000 ctermfg=255 ctermbg=196
hi Folded guifg=#999999 guibg=#444444 ctermfg=246 ctermbg=238
hi FoldColumn guifg=#e8e8e8 guibg=#222222 ctermfg=253 ctermbg=242
hi SignColumn guifg=#777777 guibg=#333333 ctermfg=000 ctermbg=120
hi SignColumn guifg=#777777 guibg=#333333 ctermfg=000 ctermbg=235
" hi IncSearch gui=bold guifg=#282828 guibg=#6C99BB ctermfg=0 ctermbg=188
hi IncSearch gui=NONE guibg=#111111 guifg=#B7DFF8 ctermfg=0 ctermbg=188
hi LineNr guifg=#8C8C8C guibg=#282828 cterm=NONE ctermfg=242 ctermbg=235
Expand Down Expand Up @@ -64,7 +64,7 @@ hi QuickFixLine guifg=#FFFFFF guibg=#ff6565 cterm=NONE ctermfg=NONE cter

hi SpellCap term=reverse ctermbg=9 gui=undercurl guisp=#FFF980

hi SpellBad ctermfg=233 ctermbg=202 gui=undercurl guisp=Red
hi SpellBad cterm=undercurl ctermul=233 ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#ff6565 guibg=NONE guifg=NONE
hi SpellCap ctermfg=233 ctermbg=203 gui=undercurl guisp=#FFF980
hi SpellRare ctermfg=233 ctermbg=204 gui=undercurl guisp=Magenta

Expand Down Expand Up @@ -111,11 +111,8 @@ hi Special guifg=#ff6347 ctermfg=203
hi Debug guifg=#ff0000 ctermfg=9

hi Underlined gui=underline guifg=#6C99BB

hi Ignore guifg=bg

hi Error guifg=#D8D8D8 guibg=#ff0000 ctermfg=255 ctermbg=197

hi Error guibg=#333333 guifg=#ff6565 ctermfg=255 ctermbg=197
hi Todo guifg=#323232 guibg=#BC9458 ctermfg=236 ctermbg=137

" Ruby syntax (via vim-rails)
Expand Down Expand Up @@ -208,7 +205,7 @@ hi link pythonDocstring Comment
hi link pythonBuiltinObj Constant

" Syntastic
hi SyntasticErrorSign guifg=#ff6347 guibg=#333333
" hi SyntasticErrorSign guifg=#ff6347 guibg=#333333

" vim-lsp
hi lspReference guibg=#111111
Expand Down
4 changes: 2 additions & 2 deletions gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ set columns=200
" Set font
" set guifont=Monospace\ 9
" set linespace=1
set guifont=Source\ Code\ Pro\ Medium\ 10
set linespace=-2
set guifont=SFMono-Regular:h13
set linespace=1

" Disable to beep on errors
set vb t_vb=
Expand Down
15 changes: 11 additions & 4 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
syntax on
colorscheme idleFingers

set termguicolors
if !has("gui_running")
let &t_Cs = "\e[4:3m"
Expand All @@ -8,8 +11,6 @@ set nocompatible
set modeline
set modelines=5

syntax on
colorscheme idleFingers

set noswapfile
set autowrite
Expand Down Expand Up @@ -109,7 +110,6 @@ map <Leader>p :NERDTreeToggle<CR><C-W>=
" See :help NERDCommenterFunctionalitySummary
map <Leader>cc <plug>NERDCommenterToggle

" Copy/paste with easier shortcut keys
" Paste with CTRL+SHIFT+v
" noremap <C-S-v> "+gP
Expand All @@ -120,7 +120,7 @@ map <Leader>cc <plug>NERDCommenterToggle
" Select all
noremap <C-a> ggVG
let g:ale_disable_lsp = 1
let g:ale_detail_to_floating_preview = 1
let g:ale_linters = {
\ 'terraform': ['tflint'],
\ 'python': ['flake8'],
Expand All @@ -140,6 +140,13 @@ let g:ale_fixers = {
\ 'terraform': ['terraform'],
\}

" Show ALE commands
map <Leader>at <Plug>(ale_toggle)
map <Leader>ad <Plug>(ale_detail)
map <Leader>an <Plug>(ale_next_wrap)
map <Leader>ap <Plug>(ale_previous_wrap)


" vim-lsp settings

Expand Down

0 comments on commit 073a2e9

Please sign in to comment.