[SYNC] Synced a lot of small changes so I can pull on laptop
This commit is contained in:
parent
eba535af3c
commit
564c398714
9 changed files with 143 additions and 90 deletions
4
.config/nvim/ftdetect/hypr.vim
Normal file
4
.config/nvim/ftdetect/hypr.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
augroup hypr_ftdetect
|
||||
au!
|
||||
au BufRead,BufNewFile *hypr/*.conf,*hypr/*/*.conf set ft=hypr
|
||||
augroup END
|
1
.config/nvim/ftplugin/hypr.vim
Normal file
1
.config/nvim/ftplugin/hypr.vim
Normal file
|
@ -0,0 +1 @@
|
|||
setlocal commentstring=#\ %s
|
|
@ -12,6 +12,7 @@
|
|||
"fidget.nvim": { "branch": "main", "commit": "44585a0c0085765195e6961c15529ba6c5a2a13b" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "046e4d3491baf664e0eef5231d28beb49333578b" },
|
||||
"impatient.nvim": { "branch": "main", "commit": "c90e273f7b8c50a02f956c24ce4804a47f18162e" },
|
||||
"kmonad-vim": { "branch": "master", "commit": "37978445197ab00edeb5b731e9ca90c2b141723f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "15fe46a728b7473d4cae368838bbc1c79c3a3f48" },
|
||||
"leap.nvim": { "branch": "main", "commit": "ff4c3663e5a0a0ecbb3fffbc8318825def35d2aa" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" },
|
||||
|
@ -26,11 +27,11 @@
|
|||
"nvim-treesitter-context": { "branch": "master", "commit": "cacee4828152dd3a83736169ae61bbcd29a3d213" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3548363849878ef895ce54edda02421279b419d8" },
|
||||
"onedark.vim": { "branch": "main", "commit": "b6b5ffe31a195a3077338d7a506b905e4a51590f" },
|
||||
"orgmode": { "branch": "master", "commit": "dadf56334d2be7d9e8ad1e22c697a6e75f0164b7" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "1c7e3e6b0f4dd5a174fcea9fda8a4d7de593b826" },
|
||||
"startup.nvim": { "branch": "master", "commit": "b060480d2e647534faf70fa1263fe7623b77b0ce" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "b79cd6c88b3d96b0f49cb7d240807cd59b610cd8" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"vimtex": { "branch": "master", "commit": "c77ec4e15768ffcb97a96d1bf2df1ef58e94acdd" },
|
||||
"yuck.vim": { "branch": "master", "commit": "9b5e0370f70cc30383e1dabd6c215475915fe5c3" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "2c8f9f3758a4c430ff867e547741424ac16208bb" }
|
||||
}
|
|
@ -145,5 +145,9 @@ lazy.setup({
|
|||
end,
|
||||
},
|
||||
|
||||
-------------------------------------------SYNTAX----------------------------------------------
|
||||
'kmonad/kmonad-vim',
|
||||
'elkowar/yuck.vim'
|
||||
|
||||
|
||||
})
|
||||
|
|
67
.config/nvim/syntax/hypr.vim
Normal file
67
.config/nvim/syntax/hypr.vim
Normal file
|
@ -0,0 +1,67 @@
|
|||
|
||||
" Vim syntax file
|
||||
" Language: Hyprland config file
|
||||
" Maintainer: Gabriel Carneiro
|
||||
" Latest Revision: 26 October 2022
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Strings
|
||||
syn match Path "\(\.\|\~\)\/.*" display
|
||||
syn match Symbol "=" skipwhite display nextgroup=Value
|
||||
syn match Str "[a-zA-Z _ .-\"\'?]\+$" contained display
|
||||
syn match Num "\d\+\(\.\d\+\)\?" contained display
|
||||
syn match Num "e[+-]\d\+" contained display
|
||||
syn match Num "[+-]\d\+\(\.\d\+\)\?" contained display
|
||||
syn match ShellVar "\$\w\+" contained display
|
||||
syn keyword Logical on off true false no yes contained display
|
||||
syn region HyprSimpleString keepend start='[^ \t]' end='$\|#' contained contains=HyprVar,HyprComment
|
||||
syn match HyprQuotedString '"[^"]\+"' contained
|
||||
syn cluster HyprString contains=HyprSimpleString,HyprQuotedString
|
||||
|
||||
" Settings
|
||||
syn keyword Block input general animations decoration gestures misc dwindle master
|
||||
syn region OptBlock start="{" end="}" fold transparent display contains=HyprVar,Value,OptBlock,Num,Str,HyprComment,Disp,ShellVar
|
||||
syn match HyprVar '\s[a-z _ .]\+ ' skipwhite contained display nextgroup=Symbol
|
||||
syn region Value start="=" end="$\|," transparent display contains=Str,Num,Logical,ShellVar,Path,HyprComment,Disp,Dispatchers
|
||||
syn match Disp '[a-zA-Z][a-zA-Z0-9 _.]\+,' contained display contains=Num
|
||||
syn match N ', [a-zA-Z][a-zA-Z0-9 _.]\+,' contained skipwhite
|
||||
|
||||
" Commands
|
||||
syn region Command start='^[a-zA-Z][a-zA-Z_. -]\+ =' end='$' skipwhite transparent contains=HyprKeyModifier,ShellVar,HyprConfigCommand,Dispatchers,HyprComment,Str,Disp,Path,Num
|
||||
syn keyword HyprKeyModifier SUPER SHIFT CTRL ALT Mod1 Mod2 Mod3 Mod4 Mod5 Mode_switch nextgroup=N
|
||||
syn keyword HyprConfigCommand bind bindm monitor source windowrule nextgroup=Symbol contained
|
||||
|
||||
" Comments
|
||||
syn keyword HyprTodo contained TODO FIXME XXX NOTE
|
||||
syn match HyprComment "\(#\|\/\/\).*$" contains=HyprTodo
|
||||
|
||||
|
||||
highlight link Dispatchers Special
|
||||
highlight link Windowrules Special
|
||||
highlight link Disp Special
|
||||
|
||||
highlight link Num Constant
|
||||
highlight link NumRule Constant
|
||||
|
||||
highlight link HyprVar Identifier
|
||||
highlight link HyprConfigCommand Identifier
|
||||
|
||||
highlight link HyprKeyModifier Constant
|
||||
highlight link KeyBind Constant
|
||||
highlight link Logical Constant
|
||||
|
||||
highlight link Str String
|
||||
highlight link BindCmd String
|
||||
highlight link Path String
|
||||
highlight link HyprSimpleString String
|
||||
highlight link HyprQuotedString String
|
||||
|
||||
highlight link Block Define
|
||||
|
||||
highlight link ShellVar Define
|
||||
|
||||
highlight link HyprTodo Todo
|
||||
highlight link HyprComment Comment
|
Loading…
Add table
Add a link
Reference in a new issue