add support for nim to comment plugin

This commit is contained in:
Daylin Morgan 2025-01-26 14:06:53 -06:00
parent 3d94779c7a
commit 948d513572
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -6,9 +6,9 @@ return {
colorscheme = "catppuccin", colorscheme = "catppuccin",
}, },
}, },
{ -- {
"folke/noice.nvim", -- "folke/noice.nvim",
}, -- },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
@ -59,9 +59,17 @@ return {
-- only works for one file type? -- only works for one file type?
-- see lua/config/autocmds for a possible solution that includes more files -- see lua/config/autocmds for a possible solution that includes more files
condition = function(ctx) condition = function(ctx)
return vim.fs.find({".cspell.config.yaml"}, {path = ctx.filename, upward = true})[1] return vim.fs.find({ ".cspell.config.yaml" }, { path = ctx.filename, upward = true })[1]
end end,
} },
},
},
},
{
"folke/ts-comments.nvim",
opts = {
lang = {
nim = "# %s",
}, },
}, },
}, },