From: Philippe Hürlimann
Date: Mon, 27 Jun 2022 18:43:27 +0000 (+0200)
Subject: Some Go settings
X-Git-Url: https://git.hurlimann.org/?a=commitdiff_plain;h=3498d7baed96112cc59bd6f24f3da527dadd9aae;p=vimfiles.git
Some Go settings
---
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"
+ ]
+ }
}