From 66d64343c6a60e5b34831ca00def2e4a4c67a5cc Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 26 Jul 2024 14:19:51 +0200 Subject: [PATCH] nvim: adding commentstring for kdl filetype --- nvim/lua/config/filetypes.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/lua/config/filetypes.lua b/nvim/lua/config/filetypes.lua index 3eb8ee0..96b8847 100644 --- a/nvim/lua/config/filetypes.lua +++ b/nvim/lua/config/filetypes.lua @@ -28,6 +28,13 @@ autocmd('Filetype', { end }) +autocmd('Filetype', { + pattern = 'kdl', + callback = function() + vim.cmd('setlocal commentstring=//\\%s') + end +}) + -- -- Indent