diff options
| -rw-r--r-- | .config/nvim/lua/plugins/krypton.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/queries/c/highlights.scm | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/krypton.lua b/.config/nvim/lua/plugins/krypton.lua index b49c00f..26dc5eb 100644 --- a/.config/nvim/lua/plugins/krypton.lua +++ b/.config/nvim/lua/plugins/krypton.lua @@ -24,5 +24,12 @@ return { -- vim.notify('COLOR: ' .. color) assert(icon == '') assert(color == 'DevIconKrypton') + + vim.api.nvim_create_autocmd('FileType', { + pattern = 'krypton', + callback = function() + vim.bo.commentstring = '// %s' + end, + }) end, } diff --git a/.config/nvim/queries/c/highlights.scm b/.config/nvim/queries/c/highlights.scm index 688bf8f..c5bfbbd 100644 --- a/.config/nvim/queries/c/highlights.scm +++ b/.config/nvim/queries/c/highlights.scm @@ -1,6 +1,6 @@ ; extends ([(identifier) (type_identifier) (true) (false)] @keyword - (#any-of? @keyword "fn" + (#any-of? @keyword "proc" "inlined" "u8" "u16" "u32" "u64" "i8" "i16" "i32" "i64" "f32" "f64" |
