From 4facf3b949e31dc24f5c7cb35707c1328a8f9298 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 15 Sep 2025 00:50:07 +0300 Subject: Add comments to Krypton file type --- .config/nvim/lua/plugins/krypton.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/nvim/lua/plugins') 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, } -- cgit v1.3.1