]> Untitled Git - vimfiles.git/commitdiff
Some Go settings
authorPhilippe Hürlimann <p@hurlimann.org>
Mon, 27 Jun 2022 18:43:27 +0000 (20:43 +0200)
committerPhilippe Hürlimann <p@hurlimann.org>
Mon, 27 Jun 2022 18:44:48 +0000 (20:44 +0200)
ftplugin/go.vim [new file with mode: 0644]
init.vim
settings.json

diff --git a/ftplugin/go.vim b/ftplugin/go.vim
new file mode 100644 (file)
index 0000000..b78b44c
--- /dev/null
@@ -0,0 +1,5 @@
+let g:go_metalinter_autosave=1
+let g:go_auto_type_info=1
+
+nmap <buffer> <silent><Leader>gtt <Plug>(go-test)
+nmap <buffer> <silent><Leader>gtf <Plug>(go-test-func)
index ebea9074bf77238113de36689561d9604fb5d8d2..613e472221c7be4d31481616aed8a7c32740789e 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -87,6 +87,7 @@ function LC_maps()
         nmap <buffer> <silent><Leader>la <Plug>(lcn-code-action)
         vmap <buffer> <silent><Leader>la <Plug>(lcn-code-action)
         nmap <buffer> <silent><Leader>lr <Plug>(lcn-references)
+        nmap <buffer> <silent><Leader>li <Plug>(lcn-implementation)
         nmap <buffer> <silent><Leader>lf <Plug>(lcn-format)
         nmap <buffer> <silent><Leader>ls <Plug>(lcn-symbols)
         nmap <buffer> <silent><Leader>lh <Plug>(lcn-highlight)
index 9d1e13bac20b759f39856a8e112cdddbc1043a88..714781ec244c0d6860673017db3aee1c300a772e 100644 (file)
@@ -12,5 +12,9 @@
       }
     }
   },
-  "languageServerHaskell": {}
+  "gopls": {
+    "build.buildFlags": [
+      "-tags=linux"
+    ]
+  }
 }