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, +})