From 3498d7baed96112cc59bd6f24f3da527dadd9aae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20H=C3=BCrlimann?= Date: Mon, 27 Jun 2022 20:43:27 +0200 Subject: [PATCH] Some Go settings --- ftplugin/go.vim | 5 +++++ init.vim | 1 + settings.json | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ftplugin/go.vim diff --git a/ftplugin/go.vim b/ftplugin/go.vim new file mode 100644 index 0000000..b78b44c --- /dev/null +++ b/ftplugin/go.vim @@ -0,0 +1,5 @@ +let g:go_metalinter_autosave=1 +let g:go_auto_type_info=1 + +nmap gtt (go-test) +nmap gtf (go-test-func) diff --git a/init.vim b/init.vim index ebea907..613e472 100644 --- a/init.vim +++ b/init.vim @@ -87,6 +87,7 @@ function LC_maps() nmap la (lcn-code-action) vmap la (lcn-code-action) nmap lr (lcn-references) + nmap li (lcn-implementation) nmap lf (lcn-format) nmap ls (lcn-symbols) nmap lh (lcn-highlight) diff --git a/settings.json b/settings.json index 9d1e13b..714781e 100644 --- a/settings.json +++ b/settings.json @@ -12,5 +12,9 @@ } } }, - "languageServerHaskell": {} + "gopls": { + "build.buildFlags": [ + "-tags=linux" + ] + } } -- 2.51.2