Compare commits

..

8 commits

Author SHA1 Message Date
Kevin MacMartin
fd61c896f7 Apply the theme to ale diagnostics correctly 2024-03-06 17:40:15 -05:00
Kevin MacMartin
05e2fb88d5 Use better dark colors when a terminal is truecolor-enabled 2024-03-06 17:38:57 -05:00
Kevin MacMartin
fcee67cb77 Remove colors for taglist 2024-03-06 17:05:42 -05:00
Kevin MacMartin
1a851c862b Make searched text much more visible 2024-03-06 16:58:50 -05:00
Kevin MacMartin
c4202e4821 Don't rotate vimdiff panes, and move the vim_json_syntax_conceal to a config file attached to the plugin it affects 2024-03-06 16:28:24 -05:00
Kevin MacMartin
2767369c51 Remove some abbreviation 2024-03-06 15:23:20 -05:00
Kevin MacMartin
9bc1a446ae Update submodules 2024-03-06 12:10:31 -05:00
Kevin MacMartin
5aa7a9c371 Get things working properly on a linux vterm 2024-03-06 12:07:55 -05:00
9 changed files with 58 additions and 86 deletions

View file

@ -18,12 +18,10 @@
let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath) let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
"load colours "load colours
if &term != "linux"
runtime colors/palette.vim runtime colors/palette.vim
"load colour scheme: "load colour scheme:
colorscheme darkcloud colorscheme darkcloud
endif
"load user config: "load user config:
runtime user.vim runtime user.vim

@ -1 +1 @@
Subproject commit 212b7a504cf56f85d1acc5be237261b42d7560c5 Subproject commit c09932bd2de01dc9c01e870fe83060693c67de13

@ -1 +1 @@
Subproject commit 25afe7ebbc7c34f711685f5d29308a82ed5350ac Subproject commit f363d911ed2c865b8883a42613ca529cf7a6d006

View file

@ -61,9 +61,18 @@ endfun
"cursor "cursor
call s:C("Cursor","",g:cDarkBg,"standout") call s:C("Cursor","",g:cDarkBg,"standout")
if &term != "linux"
call s:C("CursorLineNr",g:cBlue,g:cLightBg,"bold")
call s:C("CursorColumn","",g:cLightBg,"") call s:C("CursorColumn","",g:cLightBg,"")
call s:C("CursorLine","",g:cLightBg,"") call s:C("CursorLine","",g:cLightBg,"")
call s:C("CursorLineNr",g:cBlue,g:cLightBg,"bold") else
call s:C("CursorLineNr",g:cBlue,"","bold")
call s:C("CursorColumn","","","")
call s:C("CursorLine","","","")
end
"line number
call s:C("LineNr",g:cGray4,"","bold") call s:C("LineNr",g:cGray4,"","bold")
"selected text "selected text
@ -83,12 +92,12 @@ endfun
call s:C("PmenuSel",g:cBlue,g:cLightBg,"bold") call s:C("PmenuSel",g:cBlue,g:cLightBg,"bold")
"search "search
call s:C("Search","",g:cDarkBg,"standout") call s:C("Search",g:cRed,g:cWhite,"bold")
hi! link IncSearch Search
hi! link IncSearchMatch Search hi! link IncSearchMatch Search
hi! link IncSearchMatchReverse Search hi! link IncSearchMatchReverse Search
call s:C("IncSearch","",g:cDarkBg,"standout")
hi! link IncSearchOnCursor IncSearch hi! link IncSearchOnCursor IncSearch
hi! link IncSearchCursor IncSearchOnCursor hi! link IncSearchCursor IncSearch
"status line "status line
call s:C("StatusLine","",g:cLightBg,"") call s:C("StatusLine","",g:cLightBg,"")
@ -272,12 +281,18 @@ endfun
hi! link SignifyLineChange DiffChange hi! link SignifyLineChange DiffChange
hi! link SignifyLineDelete DiffDelete hi! link SignifyLineDelete DiffDelete
"ale "diagnostics
call s:C("ALEErrorSign",g:cRed,"","standout") call s:C("ALEError",g:cDarkRed,"","")
call s:C("ALEWarningSign",g:cYellow,"","standout") call s:C("ALEWarning",g:cDarkYellow,"","")
call s:C("ALEInfo",g:cDarkBlue,"","")
"taglist call s:C("DiagnosticError",g:cDarkRed,"","italic")
hi! link TagListFileName Directory call s:C("DiagnosticWarn",g:cDarkYellow,"","italic")
call s:C("DiagnosticInfo",g:cDarkBlue,"","italic")
call s:C("DiagnosticHint",g:cGray3,"","italic")
call s:C("DiagnosticOk",g:cWhite,"","italic")
call s:C("DiagnosticDeprecated",g:cGray1,"","italic")
call s:C("DiagnosticUnnecessary",g:cGray1,"","italic")
"}}} "}}}
"TREESITTER: {{{ "TREESITTER: {{{

View file

@ -1,4 +1,4 @@
if has("gui_running") || &termguicolors if has("gui_running") || &term != "linux" && &termguicolors
let g:cBlack = '#000000' let g:cBlack = '#000000'
let g:cWhite = '#ffffff' let g:cWhite = '#ffffff'
@ -11,13 +11,13 @@ if has("gui_running") || &termguicolors
let g:cRed = '#d75f5f' let g:cRed = '#d75f5f'
let g:cYellow = '#ffd787' let g:cYellow = '#ffd787'
let g:cDarkBlue = '#5fafd7' let g:cDarkBlue = '#518199'
let g:cDarkRed = '#af5f5f' let g:cDarkRed = '#994444'
let g:cDarkYellow = '#d7af5f' let g:cDarkYellow = '#998151'
let g:cLightBg = '#303030' let g:cLightBg = '#303030'
let g:cDarkBg = '#262626' let g:cDarkBg = '#262626'
elseif &t_Co >= 256 elseif &term != "linux" && &t_Co >= 256
let g:cBlack = '0' "#000000 let g:cBlack = '0' "#000000
let g:cWhite = '15' "#ffffff let g:cWhite = '15' "#ffffff

View file

@ -26,13 +26,10 @@ autocmd FileChangedRO * nested set noreadonly
"enable more accurate syntax synchronization "enable more accurate syntax synchronization
autocmd BufEnter * :syntax sync fromstart autocmd BufEnter * :syntax sync fromstart
"don't conceal json syntax
let g:vim_json_syntax_conceal = 0
"disable automatic line breaks "disable automatic line breaks
autocmd VimEnter * set textwidth=0 autocmd VimEnter * set textwidth=0
"set given filenames to various filetypes "set filetypes for various file extensions
autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet
autocmd BufNewFile,BufRead *.gradle setlocal ft=groovy autocmd BufNewFile,BufRead *.gradle setlocal ft=groovy
autocmd BufNewFile,BufRead *eslintrc setlocal ft=json autocmd BufNewFile,BufRead *eslintrc setlocal ft=json
@ -58,7 +55,6 @@ autocmd FileChangedRO * nested set noreadonly
"settings for buffers in diff mode "settings for buffers in diff mode
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif
autocmd VimEnter * if &diff|wincmd H|endif
"disable the whitespace plugin for mail "disable the whitespace plugin for mail
autocmd BufEnter,FileType mail hi ExtraWhitespace ctermbg=NONE guibg=NONE autocmd BufEnter,FileType mail hi ExtraWhitespace ctermbg=NONE guibg=NONE

View file

@ -9,22 +9,6 @@
" " " "
"=============================================================" "============================================================="
" "
"Aliases:
" :GitLog & :gitlog | (C) -> show a navigatable log of commit history
" :GitDiff & :gitdiff | (C) -> current file and last commit in vimdiff
" :GitStatus & :gitstatus | (C) -> shows the output of git status
" :GitCommit & :gitcommit | (C) -> commits changes to the current file
" :git <file> | (C) -> open a vert split with the file in diff mode
"
" :vs33 | (C) -> create a vertical split using 33% width
" :vs66 | (C) -> create a vertical split using 66% width
" :sp33 | (C) -> create a split using 33% of the height
" :sp66 | (C) -> create a split using 66% of the height
" :diff | (C) -> open a new file in diff mode
"
" :ik | (C) -> add following character to keywords
" :iK | (C) -> remove following character from keywords
"
"Mappings: "Mappings:
" (mouse) " (mouse)
" <Ctrl-ScrollUp> | (A) -> scroll left " <Ctrl-ScrollUp> | (A) -> scroll left
@ -204,8 +188,8 @@
" <Leader>., | (N) -> update differences " <Leader>., | (N) -> update differences
" <Leader>> | (N) -> replace diff in other pane with current pane " <Leader>> | (N) -> replace diff in other pane with current pane
" <Leader>. | (N) -> replace diff in other pane with current pane " <Leader>. | (N) -> replace diff in other pane with current pane
" <Leader<< | (N) -> replace diff in current pane with other pane " <Leader>< | (N) -> replace diff in current pane with other pane
" <Leader<, | (N) -> replace diff in current pane with other pane " <Leader>, | (N) -> replace diff in current pane with other pane
"DISABLED DEFAULT MAPPING: UNSET SHORTCUTS {{{ "DISABLED DEFAULT MAPPING: UNSET SHORTCUTS {{{
"-unmapping tabbing from < and > for use with diff "-unmapping tabbing from < and > for use with diff
@ -228,27 +212,6 @@
nnoremap <S-k> <Nop> nnoremap <S-k> <Nop>
"}}} "}}}
"ALIASES: COMMAND SHORTCUTS {{{
"shortcuts to git commands
cabbrev <expr><silent> GitDiff ':Gdiff<CR>'
cabbrev <expr><silent> gitdiff ':Gdiff<CR>'
cabbrev <expr><silent> GitStatus ':Gstatus<CR>'
cabbrev <expr><silent> gitstatus ':Gstatus<CR>'
cabbrev <expr><silent> GitCommit ':Gcommit<CR>'
cabbrev <expr><silent> gitcommit ':Gcommit<CR>'
"create various sizes of splits
cabbrev <expr><silent> vs33 ':VS33<CR>'
cabbrev <expr><silent> vs66 ':VS66<CR>'
cabbrev <expr><silent> sp33 ':SP33<CR>'
cabbrev <expr><silent> sp66 ':SP66<CR>'
cabbrev diff vertical diffsplit
"add/remove character as keyword
cabbrev ik setlocal iskeyword+=
cabbrev iK setlocal iskeyword-=
"}}}
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
"MOUSE:{ "MOUSE:{
"hold ctrl to scroll left/right instead of up/down "hold ctrl to scroll left/right instead of up/down

View file

@ -87,7 +87,7 @@ let g:lightline#ale#indicator_errors = "E:"
let g:lightline#ale#indicator_ok = "OK" let g:lightline#ale#indicator_ok = "OK"
"status bar config with and without powerline fonts (default: 0) "status bar config with and without powerline fonts (default: 0)
if (g:enablepowerline == 1) if &term != "linux" && g:enablepowerline == 1
let g:lightline.separator = { "left": "", "right": "" } let g:lightline.separator = { "left": "", "right": "" }
let g:lightline.subseparator = { "left": "", "right": "" } let g:lightline.subseparator = { "left": "", "right": "" }
else else
@ -99,7 +99,6 @@ endif
"ligtline theme {{{ "ligtline theme {{{
let s:p = { "normal": {}, "inactive": {}, "insert": {}, "replace": {}, "visual": {}, "tabline": {} } let s:p = { "normal": {}, "inactive": {}, "insert": {}, "replace": {}, "visual": {}, "tabline": {} }
if &term != "linux"
let g:lightline.colorscheme = "darkcloud" let g:lightline.colorscheme = "darkcloud"
let s:p.normal.left = [[ g:cBlue, g:cDarkBg ], [ g:cWhite, g:cLightBg ]] let s:p.normal.left = [[ g:cBlue, g:cDarkBg ], [ g:cWhite, g:cLightBg ]]
@ -121,5 +120,4 @@ endif
let s:p.tabline.right = [[ g:cWhite, g:cDarkBg ]] let s:p.tabline.right = [[ g:cWhite, g:cDarkBg ]]
let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p) let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
endif
"}}} "}}}

View file

@ -0,0 +1,2 @@
"don't conceal json syntax
let g:vim_json_syntax_conceal = 0