From 9f65809479b353f4e3886c50489d195b29762290 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 8 Oct 2021 14:30:25 +0200 Subject: [PATCH] Update configuration files --- nvimrc | 3 ++- vim/after/ftplugin/go.vim | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nvimrc b/nvimrc index 7d3fcb5..6fdb9cd 100644 --- a/nvimrc +++ b/nvimrc @@ -471,6 +471,7 @@ require 'nvim-treesitter.configs'.setup { highlight = { enable = true, disable = {"vim"}, + additional_vim_regex_highlighting = true, }, incremental_selection = { enable = true, @@ -509,9 +510,9 @@ require 'nvim-treesitter.configs'.setup { }, }, refactor = { + enable = true, -- TODO: navigation broken. navigation = { - enable = true, keymaps = { goto_next_usage = "]r", goto_previous_usage = "[r", diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index 6b222d3..b5f158f 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -43,6 +43,8 @@ let g:go_highlight_diagnostic_errors = 0 let g:go_highlight_diagnostic_warnings = 0 let g:go_highlight_trailing_whitespace_error=0 +let g:go_fmt_command = 'goimports' + " g:go_statusline_duration doesn't seem to work accurately, but does help " reduce the time the build/test success messages are shown in the status " line.