Skip to content

Commit

Permalink
feat: editorconfig highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Iron-E committed Feb 9, 2024
1 parent 4b622be commit ae6971a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ require('highlite').setup {
<li><a href="https://github.com/liuchengxu/graphviz">
dot
</a></li>
<li>
editorconfig
</li>
<li><a href="https://github.com/tpope/vim-git">
git
</a></li>
Expand Down
2 changes: 1 addition & 1 deletion doc/highlite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ cscss
dart
dosini
dot

editorconfig
git

go
Expand Down
5 changes: 5 additions & 0 deletions lua/highlite/groups/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -911,13 +911,18 @@ local function from_palette(palette, opts)
if all_syntax or syntax.dosini ~= false then
groups.dosiniHeader = '@structure.dosini'
groups.dosiniLabel = '@variable.member.dosini'
groups.dosiniSection = '@operator.dosini'
end

if all_syntax or syntax.dot ~= false then
groups.dotKeyChar = '@character.dot'
groups.dotType = '@type.dot'
end

if all_syntax or syntax.editorconfig ~= false then
groups.editorconfigProperty = '@property.editorconfig'
end

if all_syntax or syntax.git ~= false then
groups.gitcommitHeader = '@comment.documentation.gitcommit'
groups.gitcommitDiscardedFile = 'gitcommitSelectedFile'
Expand Down
2 changes: 1 addition & 1 deletion lua/highlite/groups/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @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'
--- @alias highlite.groups.from_palette.opts.plugins.vim 'ale'|'coc'|'easymotion'|'fern'|'gitgutter'|'indent_guides'|'jumpmotion'|'nerdtree'|'sandwich'|'signify'|'swap'|'undotree'

--- @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'
--- @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'

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

0 comments on commit ae6971a

Please sign in to comment.