From 5ece96afc41b148768cb6eac148755653716c98b Mon Sep 17 00:00:00 2001 From: Linus Bensryd Date: Wed, 8 Jan 2025 09:50:04 +0100 Subject: [PATCH 1/3] Add c# configuration --- 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..787ccc4 100644 --- a/lua/ts_context_commentstring/config.lua +++ b/lua/ts_context_commentstring/config.lua @@ -67,6 +67,7 @@ M.config = { cpp = { __default = '// %s', __multiline = '/* %s */' }, css = '/* %s */', cue = '// %s', + c_sharp = { __default = '// %s', __multiline = '/* %s */' }, gleam = '// %s', glimmer = '{{! %s }}', go = { __default = '// %s', __multiline = '/* %s */' }, From 3c70c62a026fcb97d465b206678aebdf83e847d2 Mon Sep 17 00:00:00 2001 From: Linus Bensryd Date: Wed, 8 Jan 2025 09:53:55 +0100 Subject: [PATCH 2/3] Add c# to docs --- doc/nvim-ts-context-commentstring.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/nvim-ts-context-commentstring.txt b/doc/nvim-ts-context-commentstring.txt index 051c984..daf9253 100644 --- a/doc/nvim-ts-context-commentstring.txt +++ b/doc/nvim-ts-context-commentstring.txt @@ -21,6 +21,7 @@ language tree (see `lua/ts_context_commentstring/internal.lua`): - `cpp` - `css` - `cue` +- c# - `gleam` - `glimmer` - `go` From a41fd2b0231c6c4feedf208ebbb2d9720cd4ce18 Mon Sep 17 00:00:00 2001 From: Linus Bensryd Date: Wed, 8 Jan 2025 09:58:46 +0100 Subject: [PATCH 3/3] Fix formatting --- doc/nvim-ts-context-commentstring.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/nvim-ts-context-commentstring.txt b/doc/nvim-ts-context-commentstring.txt index daf9253..2be01c3 100644 --- a/doc/nvim-ts-context-commentstring.txt +++ b/doc/nvim-ts-context-commentstring.txt @@ -21,7 +21,7 @@ language tree (see `lua/ts_context_commentstring/internal.lua`): - `cpp` - `css` - `cue` -- c# +- `c#` - `gleam` - `glimmer` - `go`