From b6c1ce8a9545575f8b1ea75e29a4ee9f018e3276 Mon Sep 17 00:00:00 2001 From: Samuel Born Date: Sun, 9 Jun 2024 14:16:31 +0200 Subject: fix(runtime): add commentstring for glsl ftplugin --- runtime/ftplugin/glsl.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 runtime/ftplugin/glsl.lua (limited to 'runtime/ftplugin/glsl.lua') diff --git a/runtime/ftplugin/glsl.lua b/runtime/ftplugin/glsl.lua new file mode 100644 index 0000000000..f398d66a63 --- /dev/null +++ b/runtime/ftplugin/glsl.lua @@ -0,0 +1 @@ +vim.bo.commentstring = '// %s' -- cgit From 8f5e90811025bcc652146168d5116f8d73fe8f81 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Jul 2024 17:48:09 +0800 Subject: fix(runtime): update b:undo_ftplugin in Lua runtime files (#29529) Related to #29506, but adding vim.treesitter.stop() to b:undo_ftplugin doesn't solve the problem yet. --- runtime/ftplugin/glsl.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/ftplugin/glsl.lua') diff --git a/runtime/ftplugin/glsl.lua b/runtime/ftplugin/glsl.lua index f398d66a63..49a8702986 100644 --- a/runtime/ftplugin/glsl.lua +++ b/runtime/ftplugin/glsl.lua @@ -1 +1,3 @@ vim.bo.commentstring = '// %s' + +vim.b.undo_ftplugin = 'setl commentstring<' -- cgit From 50577534318bbf8c1e22e80a74baa3b20c131ea8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 23 Sep 2024 16:49:34 +0800 Subject: fix(runtime): treat b:undo_ftplugin consistently in Lua ftplugins (#30473) - Don't assume b:undo_ftplugin is set when first modifying it. - Don't assume b:undo_ftplugin already contains some resetting. --- runtime/ftplugin/glsl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ftplugin/glsl.lua') diff --git a/runtime/ftplugin/glsl.lua b/runtime/ftplugin/glsl.lua index 49a8702986..89ab42ef54 100644 --- a/runtime/ftplugin/glsl.lua +++ b/runtime/ftplugin/glsl.lua @@ -1,3 +1,3 @@ vim.bo.commentstring = '// %s' -vim.b.undo_ftplugin = 'setl commentstring<' +vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n setl commentstring<' -- cgit