From 17f45981edd67a3942bb83402c93a77e9becf096 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 16 Oct 2024 09:18:14 -0400 Subject: [PATCH] force comment handling for sql --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index 0fda20c..cdbc921 100644 --- a/init.lua +++ b/init.lua @@ -35,3 +35,11 @@ require "nvchad.autocmds" vim.schedule(function() require "mappings" end) + +------added------------ +vim.api.nvim_create_autocmd("FileType", { + pattern = "sql", + callback = function() + vim.bo.commentstring = "-- %s" + end, +})