From fd7442006f54792c8fc2996c301f706646733f46 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 17 Oct 2024 20:03:02 +0300 Subject: [PATCH] feat: minor go tweaks --- .config/nvim/lua/custom/config/commands.lua | 2 +- .config/nvim/lua/custom/plugins/conform.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/custom/config/commands.lua b/.config/nvim/lua/custom/config/commands.lua index 37bd2fc..50fca05 100644 --- a/.config/nvim/lua/custom/config/commands.lua +++ b/.config/nvim/lua/custom/config/commands.lua @@ -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, diff --git a/.config/nvim/lua/custom/plugins/conform.lua b/.config/nvim/lua/custom/plugins/conform.lua index bf28542..5569159 100644 --- a/.config/nvim/lua/custom/plugins/conform.lua +++ b/.config/nvim/lua/custom/plugins/conform.lua @@ -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' },