mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-23 20:14:11 -05:00
Compare commits
8 commits
5ebf040807
...
fd61c896f7
Author | SHA1 | Date | |
---|---|---|---|
|
fd61c896f7 | ||
|
05e2fb88d5 | ||
|
fcee67cb77 | ||
|
1a851c862b | ||
|
c4202e4821 | ||
|
2767369c51 | ||
|
9bc1a446ae | ||
|
5aa7a9c371 |
9 changed files with 58 additions and 86 deletions
2
init.vim
2
init.vim
|
@ -18,12 +18,10 @@
|
|||
let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
|
||||
|
||||
"load colours
|
||||
if &term != "linux"
|
||||
runtime colors/palette.vim
|
||||
|
||||
"load colour scheme:
|
||||
colorscheme darkcloud
|
||||
endif
|
||||
|
||||
"load user config:
|
||||
runtime user.vim
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 212b7a504cf56f85d1acc5be237261b42d7560c5
|
||||
Subproject commit c09932bd2de01dc9c01e870fe83060693c67de13
|
|
@ -1 +1 @@
|
|||
Subproject commit 25afe7ebbc7c34f711685f5d29308a82ed5350ac
|
||||
Subproject commit f363d911ed2c865b8883a42613ca529cf7a6d006
|
|
@ -61,9 +61,18 @@ endfun
|
|||
|
||||
"cursor
|
||||
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("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")
|
||||
|
||||
"selected text
|
||||
|
@ -83,12 +92,12 @@ endfun
|
|||
call s:C("PmenuSel",g:cBlue,g:cLightBg,"bold")
|
||||
|
||||
"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 IncSearchMatchReverse Search
|
||||
call s:C("IncSearch","",g:cDarkBg,"standout")
|
||||
hi! link IncSearchOnCursor IncSearch
|
||||
hi! link IncSearchCursor IncSearchOnCursor
|
||||
hi! link IncSearchCursor IncSearch
|
||||
|
||||
"status line
|
||||
call s:C("StatusLine","",g:cLightBg,"")
|
||||
|
@ -272,12 +281,18 @@ endfun
|
|||
hi! link SignifyLineChange DiffChange
|
||||
hi! link SignifyLineDelete DiffDelete
|
||||
|
||||
"ale
|
||||
call s:C("ALEErrorSign",g:cRed,"","standout")
|
||||
call s:C("ALEWarningSign",g:cYellow,"","standout")
|
||||
"diagnostics
|
||||
call s:C("ALEError",g:cDarkRed,"","")
|
||||
call s:C("ALEWarning",g:cDarkYellow,"","")
|
||||
call s:C("ALEInfo",g:cDarkBlue,"","")
|
||||
|
||||
"taglist
|
||||
hi! link TagListFileName Directory
|
||||
call s:C("DiagnosticError",g:cDarkRed,"","italic")
|
||||
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: {{{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if has("gui_running") || &termguicolors
|
||||
if has("gui_running") || &term != "linux" && &termguicolors
|
||||
let g:cBlack = '#000000'
|
||||
let g:cWhite = '#ffffff'
|
||||
|
||||
|
@ -11,13 +11,13 @@ if has("gui_running") || &termguicolors
|
|||
let g:cRed = '#d75f5f'
|
||||
let g:cYellow = '#ffd787'
|
||||
|
||||
let g:cDarkBlue = '#5fafd7'
|
||||
let g:cDarkRed = '#af5f5f'
|
||||
let g:cDarkYellow = '#d7af5f'
|
||||
let g:cDarkBlue = '#518199'
|
||||
let g:cDarkRed = '#994444'
|
||||
let g:cDarkYellow = '#998151'
|
||||
|
||||
let g:cLightBg = '#303030'
|
||||
let g:cDarkBg = '#262626'
|
||||
elseif &t_Co >= 256
|
||||
elseif &term != "linux" && &t_Co >= 256
|
||||
let g:cBlack = '0' "#000000
|
||||
let g:cWhite = '15' "#ffffff
|
||||
|
||||
|
|
|
@ -26,13 +26,10 @@ autocmd FileChangedRO * nested set noreadonly
|
|||
"enable more accurate syntax synchronization
|
||||
autocmd BufEnter * :syntax sync fromstart
|
||||
|
||||
"don't conceal json syntax
|
||||
let g:vim_json_syntax_conceal = 0
|
||||
|
||||
"disable automatic line breaks
|
||||
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 *.gradle setlocal ft=groovy
|
||||
autocmd BufNewFile,BufRead *eslintrc setlocal ft=json
|
||||
|
@ -58,7 +55,6 @@ autocmd FileChangedRO * nested set noreadonly
|
|||
|
||||
"settings for buffers in diff mode
|
||||
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif
|
||||
autocmd VimEnter * if &diff|wincmd H|endif
|
||||
|
||||
"disable the whitespace plugin for mail
|
||||
autocmd BufEnter,FileType mail hi ExtraWhitespace ctermbg=NONE guibg=NONE
|
||||
|
|
|
@ -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:
|
||||
" (mouse)
|
||||
" <Ctrl-ScrollUp> | (A) -> scroll left
|
||||
|
@ -204,8 +188,8 @@
|
|||
" <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 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 {{{
|
||||
"-unmapping tabbing from < and > for use with diff
|
||||
|
@ -228,27 +212,6 @@
|
|||
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 {{{
|
||||
"MOUSE:{
|
||||
"hold ctrl to scroll left/right instead of up/down
|
||||
|
|
|
@ -87,7 +87,7 @@ let g:lightline#ale#indicator_errors = "E:"
|
|||
let g:lightline#ale#indicator_ok = "OK"
|
||||
|
||||
"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.subseparator = { "left": "", "right": "" }
|
||||
else
|
||||
|
@ -99,7 +99,6 @@ endif
|
|||
"ligtline theme {{{
|
||||
let s:p = { "normal": {}, "inactive": {}, "insert": {}, "replace": {}, "visual": {}, "tabline": {} }
|
||||
|
||||
if &term != "linux"
|
||||
let g:lightline.colorscheme = "darkcloud"
|
||||
|
||||
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 g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
|
||||
endif
|
||||
"}}}
|
||||
|
|
2
vim/config/plugins/vim-polyglot-darkcloud.vim
Normal file
2
vim/config/plugins/vim-polyglot-darkcloud.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
"don't conceal json syntax
|
||||
let g:vim_json_syntax_conceal = 0
|
Loading…
Reference in a new issue