add skip_ts_context_commentstring_module

This commit is contained in:
2025-10-03 12:09:05 -04:00
parent 648aab0620
commit 406585c221
4 changed files with 13 additions and 10 deletions
+5 -4
View File
@@ -12,14 +12,15 @@ autocmd('FileType', {
end, end,
}) })
--[[ -- ─────────────────────[ set options for gitcommit ]───────────────────── -- ─────────────────────[ set options for gitcommit ]─────────────────────
autocmd('FileType', { autocmd('FileType', {
pattern = 'gitcommit', pattern = 'gitcommit',
callback = function() callback = function()
vim.opt_local.textwidth = 78 o.colorcolumn = '+1,+2'
vim.opt_local.spell = true o.textwidth = 78
o.spell = true
end, end,
}) ]] })
-- ┌ -- ┌
-- │ Highlight on yank -- │ Highlight on yank
@@ -9,4 +9,4 @@ return {
enable_close_on_slash = true, enable_close_on_slash = true,
}, },
}, },
} }
@@ -1,3 +1,5 @@
vim.g.skip_ts_context_commentstring_module = true
return { return {
'JoosepAlviste/nvim-ts-context-commentstring', 'JoosepAlviste/nvim-ts-context-commentstring',
dependencies = { dependencies = {
@@ -57,13 +57,13 @@ return {
enable = true, enable = true,
swap_next = { swap_next = {
['<leader>na'] = '@parameter.inner', -- swap parameters/argument with next ['<leader>na'] = '@parameter.inner', -- swap parameters/argument with next
['<leader>n:'] = '@property.outer', -- swap object property with next ['<leader>n:'] = '@property.outer', -- swap object property with next
['<leader>nm'] = '@function.outer', -- swap function with next ['<leader>nm'] = '@function.outer', -- swap function with next
}, },
swap_previous = { swap_previous = {
['<leader>pa'] = '@parameter.inner', -- swap parameters/argument with prev ['<leader>pa'] = '@parameter.inner', -- swap parameters/argument with prev
['<leader>p:'] = '@property.outer', -- swap object property with prev ['<leader>p:'] = '@property.outer', -- swap object property with prev
['<leader>pm'] = '@function.outer', -- swap function with previous ['<leader>pm'] = '@function.outer', -- swap function with previous
}, },
}, },
move = { move = {
@@ -158,4 +158,4 @@ return {
vim.keymap.set({ 'n', 'x', 'o' }, ']b', next_buffer) vim.keymap.set({ 'n', 'x', 'o' }, ']b', next_buffer)
vim.keymap.set({ 'n', 'x', 'o' }, '[b', prev_buffer) vim.keymap.set({ 'n', 'x', 'o' }, '[b', prev_buffer)
end, end,
} }