feat: minor go tweaks
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user