diff options
author | christianchiarulli <[email protected]> | 2021-07-01 23:42:26 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-01 23:42:26 -0400 |
commit | 20ed47e21e966a5b857ef9970ae6171b3a504ce1 (patch) | |
tree | 92bdefc7589545f4429a55b53e4493ad7832e632 /lua/lsp/go-ls.lua | |
parent | 9bb4f8a085644914c79343b48c808509311ee203 (diff) |
lsp in ftplugin austonautomoy
Diffstat (limited to 'lua/lsp/go-ls.lua')
-rw-r--r-- | lua/lsp/go-ls.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lua/lsp/go-ls.lua b/lua/lsp/go-ls.lua deleted file mode 100644 index b2d6a82a..00000000 --- a/lua/lsp/go-ls.lua +++ /dev/null @@ -1,22 +0,0 @@ -require'lspconfig'.gopls.setup { - cmd = {DATA_PATH .. "/lspinstall/go/gopls"}, - settings = {gopls = {analyses = {unusedparams = true}, staticcheck = true}}, - root_dir = require'lspconfig'.util.root_pattern(".git", "go.mod"), - init_options = {usePlaceholders = true, completeUnimported = true}, - on_attach = require'lsp'.common_on_attach -} - -if O.lang.go.autoformat then - require('lv-utils').define_augroups({ - _go_format = { - {'BufWritePre', '*.go', 'lua vim.lsp.buf.formatting_sync(nil,1000)'} - }, - _go = { - -- Go generally requires Tabs instead of spaces. - {'FileType', 'go', 'setlocal tabstop=4'}, - {'FileType', 'go', 'setlocal shiftwidth=4'}, - {'FileType', 'go', 'setlocal softtabstop=4'}, - {'FileType', 'go', 'setlocal noexpandtab'} - } - }) -end |