From 406585c2217963d85186604d6b38cbba1ce81ed3 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Fri, 3 Oct 2025 12:09:05 -0400 Subject: [PATCH] add skip_ts_context_commentstring_module --- .config/nvim/lua/core/autocmds.lua | 9 +++++---- .config/nvim/lua/plugins/treesitter/ts-autotag.lua | 2 +- .../nvim/lua/plugins/treesitter/ts-commentstring.lua | 2 ++ .../nvim/lua/plugins/treesitter/ts-text-objects.lua | 10 +++++----- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/core/autocmds.lua b/.config/nvim/lua/core/autocmds.lua index a8f27a8..a7d11ce 100644 --- a/.config/nvim/lua/core/autocmds.lua +++ b/.config/nvim/lua/core/autocmds.lua @@ -12,14 +12,15 @@ autocmd('FileType', { end, }) ---[[ -- ─────────────────────[ set options for gitcommit ]───────────────────── +-- ─────────────────────[ set options for gitcommit ]───────────────────── autocmd('FileType', { pattern = 'gitcommit', callback = function() - vim.opt_local.textwidth = 78 - vim.opt_local.spell = true + o.colorcolumn = '+1,+2' + o.textwidth = 78 + o.spell = true end, -}) ]] +}) -- ┌ -- │ Highlight on yank diff --git a/.config/nvim/lua/plugins/treesitter/ts-autotag.lua b/.config/nvim/lua/plugins/treesitter/ts-autotag.lua index 092f0ae..959d740 100644 --- a/.config/nvim/lua/plugins/treesitter/ts-autotag.lua +++ b/.config/nvim/lua/plugins/treesitter/ts-autotag.lua @@ -9,4 +9,4 @@ return { enable_close_on_slash = true, }, }, -} \ No newline at end of file +} diff --git a/.config/nvim/lua/plugins/treesitter/ts-commentstring.lua b/.config/nvim/lua/plugins/treesitter/ts-commentstring.lua index b0d43b9..170e980 100644 --- a/.config/nvim/lua/plugins/treesitter/ts-commentstring.lua +++ b/.config/nvim/lua/plugins/treesitter/ts-commentstring.lua @@ -1,3 +1,5 @@ +vim.g.skip_ts_context_commentstring_module = true + return { 'JoosepAlviste/nvim-ts-context-commentstring', dependencies = { diff --git a/.config/nvim/lua/plugins/treesitter/ts-text-objects.lua b/.config/nvim/lua/plugins/treesitter/ts-text-objects.lua index b47bab3..370841c 100644 --- a/.config/nvim/lua/plugins/treesitter/ts-text-objects.lua +++ b/.config/nvim/lua/plugins/treesitter/ts-text-objects.lua @@ -57,13 +57,13 @@ return { enable = true, swap_next = { ['na'] = '@parameter.inner', -- swap parameters/argument with next - ['n:'] = '@property.outer', -- swap object property with next - ['nm'] = '@function.outer', -- swap function with next + ['n:'] = '@property.outer', -- swap object property with next + ['nm'] = '@function.outer', -- swap function with next }, swap_previous = { ['pa'] = '@parameter.inner', -- swap parameters/argument with prev - ['p:'] = '@property.outer', -- swap object property with prev - ['pm'] = '@function.outer', -- swap function with previous + ['p:'] = '@property.outer', -- swap object property with prev + ['pm'] = '@function.outer', -- swap function with previous }, }, move = { @@ -158,4 +158,4 @@ return { vim.keymap.set({ 'n', 'x', 'o' }, ']b', next_buffer) vim.keymap.set({ 'n', 'x', 'o' }, '[b', prev_buffer) end, -} \ No newline at end of file +}