From 50a0d3d2e9010e309c9a8f421520ac0d0368e800 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Sun, 7 Jul 2024 18:47:51 +0930 Subject: [PATCH] feat: add dart comment string autocmd --- .config/nvim/lua/tovi/core/autocmd.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/tovi/core/autocmd.lua b/.config/nvim/lua/tovi/core/autocmd.lua index 7613a79..1f5affb 100644 --- a/.config/nvim/lua/tovi/core/autocmd.lua +++ b/.config/nvim/lua/tovi/core/autocmd.lua @@ -9,6 +9,12 @@ local aucmd_dict = { vim.opt_local.shiftwidth = 2 end, }, + { + pattern = 'dart', + callback = function () + vim.bo.commentstring = '// %s' + end + }, }, BufWritePre = {