From 948d51357243fd8f10fd38196ae0bb1d4015a496 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 26 Jan 2025 14:06:53 -0600 Subject: [PATCH] add support for nim to comment plugin --- .../nvim/lua/plugins/builtins.lua | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/home/private_dot_config/nvim/lua/plugins/builtins.lua b/home/private_dot_config/nvim/lua/plugins/builtins.lua index ee6fba1..e51422c 100644 --- a/home/private_dot_config/nvim/lua/plugins/builtins.lua +++ b/home/private_dot_config/nvim/lua/plugins/builtins.lua @@ -6,9 +6,9 @@ return { colorscheme = "catppuccin", }, }, - { - "folke/noice.nvim", - }, + -- { + -- "folke/noice.nvim", + -- }, { "nvim-treesitter/nvim-treesitter", opts = function(_, opts) @@ -59,9 +59,17 @@ return { -- only works for one file type? -- see lua/config/autocmds for a possible solution that includes more files condition = function(ctx) - return vim.fs.find({".cspell.config.yaml"}, {path = ctx.filename, upward = true})[1] - end - } + return vim.fs.find({ ".cspell.config.yaml" }, { path = ctx.filename, upward = true })[1] + end, + }, + }, + }, + }, + { + "folke/ts-comments.nvim", + opts = { + lang = { + nim = "# %s", }, }, },