feat: minor go tweaks

This commit is contained in:
Kyren223
2024-10-17 20:03:02 +03:00
parent 295c881e61
commit fd7442006f
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'TextChanged', 'InsertLeave' }, {
local text = vim.api.nvim_buf_get_text(bufnr, start_row, start_col, end_row, end_col, {})[1]
-- Highlight only the parts matching `%[a-z]`
for match_start, match_end in text:gmatch('()%%[a-zT]()') do
for match_start, match_end in text:gmatch('()%%[a-z]()') do
vim.api.nvim_buf_add_highlight(
bufnr,
-1,

View File

@@ -16,7 +16,7 @@ return {
['c'] = { 'clang-format' },
['python'] = { 'isort', 'black' },
['rust'] = { 'rustfmt' },
['go'] = { 'gofumpt', "goimports-reviser", "golines" },
['go'] = { 'gofumpt', 'goimports-reviser' },
['markdown'] = { 'prettierd', 'prettier', stop_after_first = true },
['yaml'] = { 'prettierd' },
['json'] = { 'jq' },