From 56e3ab342f9d1e5f3174973cfd555569552c5668 Mon Sep 17 00:00:00 2001 From: 924312 <924312@gmail.com> Date: Thu, 10 Jul 2025 12:31:49 +1200 Subject: [PATCH] Update config.lua - add Powershell multiline comments Powershell uses <# %s #> for multiline comments I use Neovim with LazyVim which uses blink.cmp for the LSP as far as I can tell. I'm quite new to all this. Treesitter does have a Powershell parser listed here https://github.com/tree-sitter/tree-sitter/wiki/List-of-parsers but I think everyone uses the powershell_es LSP instead. I installed powershell_es using Mason and it's working well. I've created a plugin file for this with the change and tested it and it didn't work (good chance I did something wrong), but figured I'd give you the info anyway. --- lua/ts_context_commentstring/config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/ts_context_commentstring/config.lua b/lua/ts_context_commentstring/config.lua index a2d0a39..1145999 100644 --- a/lua/ts_context_commentstring/config.lua +++ b/lua/ts_context_commentstring/config.lua @@ -80,6 +80,7 @@ M.config = { lua = { __default = '-- %s', __multiline = '--[[ %s ]]' }, nix = { __default = '# %s', __multiline = '/* %s */' }, php = { __default = '// %s', __multiline = '/* %s */' }, + powershell = { __default = "# %s", __multiline = "<# %s #>" }, python = { __default = '# %s', __multiline = '""" %s """' }, rego = '# %s', rescript = { __default = '// %s', __multiline = '/* %s */' },