Skip to content

Commit

Permalink
]fff
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Aug 24, 2024
1 parent 8028e23 commit 2acc34b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
48 changes: 37 additions & 11 deletions nvim/functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
fu! CorrectColors()
if ! empty($DISPLAY)
"hi Comment gui=NONE guibg=#444444 guifg=#000000
hi Comment gui=ITALIC guifg=#005FEF guibg=NONE
hi Comment gui=italic guifg=#005FEF guibg=NONE
else
hi Comment gui=ITALIC guifg=#005FEF guibg=NONE
hi Comment gui=italic guifg=#005FEF guibg=NONE
endif
hi ColorColumn gui=NONE guibg=#222222 guifg=NONE
hi CursorLine gui=BOLD guibg=#000022 guifg=NONE
hi CursorLine gui=bold guibg=#000022 guifg=NONE
hi CursorLineNr gui=NONE guibg=NONE guifg=#FFFF00
hi DiagnosticError guifg=#000000 guibg=#990000
hi DiagnosticHint guifg=#000000 guibg=#888888
hi DiagnosticInfo guifg=#000000 guibg=#AAAAAA
hi DiagnosticWarn guifg=#000000 guibg=#AA8500
hi EndOfBuffer gui=NONE guifg=#333333 guibg=NONE
hi ExtraWhiteSpace gui=NONE guibg=#0099FF
hi FoldColumn gui=ITALIC guibg=NONE guifg=#00FF00
hi Folded gui=ITALIC guibg=NONE guifg=#777777
hi FoldColumn gui=italic guibg=NONE guifg=#00FF00
hi Folded gui=italic guibg=NONE guifg=#777777
hi GitSignsAdd guifg=#00DD00
hi IncSearch gui=NONE guibg=#FF0000 guifg=#000000
hi lCursor gui=NONE guibg=NONE guifg=NONE
Expand All @@ -27,18 +27,18 @@ fu! CorrectColors()
"hi ModeMsg gui=NONE guibg=#00ff00 guifg=#000087
"hi MoreMsg gui=NONE guibg=NONE guifg=#5fffff
hi NonText gui=NONE guibg=NONE guifg=#00FF00
hi Normal gui=NONE guibg=NONE
hi Normal gui=NONE guibg=NONE guifg=#D0D0D0
hi Search gui=NONE guibg=#FF00FF guifg=#000000
hi StatusLine gui=NONE guibg=NONE guifg=#009900
hi StatusLineNC gui=NONE guibg=NONE guifg=#999999
hi TabLine gui=NONE guibg=NONE guifg=#999999
hi TabLineSel gui=BOLD guibg=NONE guifg=#00FF00
hi TabLineSel gui=bold guibg=NONE guifg=#00FF00
hi TermCursor guibg=NONE guifg=#00AA00
hi HLspStatus gui=NONE guibg=NONE guifg=#00FF00
hi HStatusFullFile gui=NONE guibg=NONE guifg=#999999
"------------------------SPELLING---------------------------#
hi SpellBad gui=undercurl guisp=red guifg=#AAAAAA
"hi ModeMsg guifg=#000087 guibg=#00ff00 gui=NONE cterm=NONE
hi SpellBad gui=undercurl guisp=#FF0000 guibg=NONE guifg=#AAAAAA
hi ModeMsg guifg=#000000 guibg=#009900 gui=NONE cterm=NONE
"hi MoreMsg guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
"hi NonText guifg=#d787d7 guibg=NONE gui=NONE cterm=NONE
"hi StatusLine guifg=#000087 guibg=#5fffff gui=NONE cterm=NONE
Expand All @@ -53,7 +53,7 @@ fu! CorrectColors()
hi WhichKeySeparator guibg=NONE " guifg=#000000
hi WhichKeyDesc guibg=NONE " guifg=#BBBBBB
"hi WhichKeyBorder guibg=#999999 guifg=#777777
hi WhichKeyValue gui=ITALIC guibg=NONE guifg=#777777
hi WhichKeyValue gui=italic guibg=NONE guifg=#777777
"-----Floaterm-----"
hi Floaterm guibg=#000000
hi FloatermBorder guibg=#000000 guifg=#000000
Expand All @@ -62,6 +62,27 @@ fu! CorrectColors()
hi @keyword guifg=#777777
hi @keyword.function guifg=#009900
hi @function guifg=#00AAAA
"-----Markdown--------"
"hi Title gui=bold guifg=green
hi @markup.heading.1.markdown gui=bold,underdouble guibg=#00FF00 guifg=#000000 guisp=#000000
hi @markup.heading.2.markdown gui=bold,underline guibg=#00DD00 guifg=#000000
hi @markup.heading.3.markdown gui=bold guibg=#00AA00 guifg=#000000
hi @markup.heading.4.markdown gui=bold guibg=#009900 guifg=#000000
hi @markup.heading.5.markdown gui=bold guibg=#007700 guifg=#000000
hi @markup.heading.6.markdown gui=bold guibg=#00AA00 guifg=#000000
hi @markup.heading.7.markdown gui=bold guibg=#00AA00 guifg=#000000

hi @markup.heading.markdown gui=bold guibg=#444444 guifg=#000000

hi @markup.raw.markdown_inline gui=bold guibg=#111111 guifg=#00FF00
hi @conceal.markdown_inline gui=NONE guibg=NONE guifg=#009900
"hi @markup.link.label.markdown_inline gui=NONE guifg=#009999
"hi @markup.link.markdown_inline gui=NONE
"hi @markup.link.url.markdown_inline gui=NONE
"hi @_label.markdown_inline gui=NONE
"hi @_url gui=NONE
"hi @_url.markdown_inline gui=NONE
"hi @nospell.markdown_inline gui=NONE
"hi @keyword.repeat guifg=#FF0000
endfu

Expand Down Expand Up @@ -194,7 +215,12 @@ fu! FilePathFull()
endfu

fu! GetHL()
echo synIDattr(synID(line("."), col("."), 0), "name")
let l:synid = synID(line("."), col("."), 1)
if l:synid != 0
echo synIDattr(synIDtrans(l:synid), "name")
else
:Inspect
end
endfu

"fu! M_LspState()
Expand Down
2 changes: 1 addition & 1 deletion nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ set ruler
set signcolumn=yes:2
set splitright
set t_Co=256
set termguicolors
"set termguicolors
set textwidth=0
set undofile
set undolevels=10000
Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local leader_nnoremap = {
{ 'Edit File CWD', 'E' , ':call feedkeys(":e " . FilePathFull() . "/")<CR>' },
{ '+ Wrap', 'f' , ':set wrap!<esc>' },
{ 'New File', 'gn' , ':enew<esc>' },
{ '', 'gh' , ':call GetHL()<CR>' },
{ '', 'gh' , ':call GetHL()<ESC>' },
{ 'Print Mappings', 'gm' , ':call GMaps()<CR>' },
{ 'Helpgrep', 'H' , ':vert helpgrep ' },
{ 'Open diagnostics', 'i' , ':lua vim.diagnostic.open_float(nil, {focus=true, scope="cursor")<CR>' },
Expand Down

0 comments on commit 2acc34b

Please sign in to comment.