fix(nvim): properly set up 'nvim-ts-context-commentstring'

This commit is contained in:
2026-06-02 21:20:31 +02:00
parent 1e55ac7042
commit 8df90a3a08

View File

@@ -0,0 +1,8 @@
require("ts_context_commentstring").setup({ enable_autocmd = false })
-- https://github.com/JoosepAlviste/nvim-ts-context-commentstring/issues/109
local get_option = vim.filetype.get_option
vim.filetype.get_option = function(filetype, option)
return option == "commentstring" and require("ts_context_commentstring.internal").calculate_commentstring()
or get_option(filetype, option)
end