summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/krypton.lua
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-09-15 00:50:07 +0300
committerKyren223 <contact@kyren.codes>2025-09-15 00:50:07 +0300
commit4facf3b949e31dc24f5c7cb35707c1328a8f9298 (patch)
tree5ac1388a9b38a64730b58b287bf43dc72e9abfa1 /.config/nvim/lua/plugins/krypton.lua
parent5769657f181f98e835e76e1fe60ee9efa06836b0 (diff)
Add comments to Krypton file type
Diffstat (limited to '.config/nvim/lua/plugins/krypton.lua')
-rw-r--r--.config/nvim/lua/plugins/krypton.lua7
1 files changed, 7 insertions, 0 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,
}