Skip to content

Commit ae6971a

Browse files
committed
feat: editorconfig highlighting
1 parent 4b622be commit ae6971a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,9 @@ require('highlite').setup {
423423
<li><a href="https://github.com/liuchengxu/graphviz">
424424
dot
425425
</a></li>
426+
<li>
427+
editorconfig
428+
</li>
426429
<li><a href="https://github.com/tpope/vim-git">
427430
git
428431
</a></li>

doc/highlite.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ cscss
334334
dart
335335
dosini
336336
dot
337-
337+
editorconfig
338338
git
339339

340340
go

lua/highlite/groups/default.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,13 +911,18 @@ local function from_palette(palette, opts)
911911
if all_syntax or syntax.dosini ~= false then
912912
groups.dosiniHeader = '@structure.dosini'
913913
groups.dosiniLabel = '@variable.member.dosini'
914+
groups.dosiniSection = '@operator.dosini'
914915
end
915916

916917
if all_syntax or syntax.dot ~= false then
917918
groups.dotKeyChar = '@character.dot'
918919
groups.dotType = '@type.dot'
919920
end
920921

922+
if all_syntax or syntax.editorconfig ~= false then
923+
groups.editorconfigProperty = '@property.editorconfig'
924+
end
925+
921926
if all_syntax or syntax.git ~= false then
922927
groups.gitcommitHeader = '@comment.documentation.gitcommit'
923928
groups.gitcommitDiscardedFile = 'gitcommitSelectedFile'

lua/highlite/groups/types.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--- @alias highlite.groups.from_palette.opts.plugins.nvim 'aerial'|'barbar'|'cmp'|'fzf'|'gitsigns'|'indent_blankline'|'lazy'|'leap'|'lsp_signature'|'lspconfig'|'lspsaga'|'mini'|'neotest'|'nvim_tree'|'packer'|'sniprun'|'symbols_outline'|'telescope'|'todo_comments'|'treesitter_context'|'trouble'
44
--- @alias highlite.groups.from_palette.opts.plugins.vim 'ale'|'coc'|'easymotion'|'fern'|'gitgutter'|'indent_guides'|'jumpmotion'|'nerdtree'|'sandwich'|'signify'|'swap'|'undotree'
55

6-
--- @alias highlite.groups.from_palette.opts.syntax 'coq'|'cpp'|'cs'|'css'|'dart'|'dosini'|'dot'|'git'|'go'|'help'|'html'|'i3config'|'java'|'javascript'|'json'|'lua'|'make'|'man'|'markdown'|'python'|'razor'|'ruby'|'rust'|'scala'|'scss'|'sh'|'solidity'|'sql'|'tex'|'toml'|'vim'|'xdefaults'|'xml'|'xxd'|'yaml'
6+
--- @alias highlite.groups.from_palette.opts.syntax 'coq'|'cpp'|'cs'|'css'|'dart'|'dosini'|'dot'|'editorconfig'|'git'|'go'|'help'|'html'|'i3config'|'java'|'javascript'|'json'|'lua'|'make'|'man'|'markdown'|'python'|'razor'|'ruby'|'rust'|'scala'|'scss'|'sh'|'solidity'|'sql'|'tex'|'toml'|'vim'|'xdefaults'|'xml'|'xxd'|'yaml'
77

88
--- @class highlite.groups.from_palette.opts.plugins
99
--- @field nvim boolean|{[highlite.groups.from_palette.opts.plugins.nvim]: nil|boolean}

0 commit comments

Comments
 (0)