forked from ayamir/nvimdots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: improve go development experience (ayamir#1226)
* chore(go): replace vim-go with go.nvim. Signed-off-by: ayamir <lgt986452565@gmail.com> * fix: install gopls by mason by default. Signed-off-by: ayamir <lgt986452565@gmail.com> * feat(keymap): set `n|gi` to goto implementation. Signed-off-by: ayamir <lgt986452565@gmail.com> * chore(keymap): use `gm` to jump to lsp implementations Co-authored-by: 冷酔閑吟 <50296129+Jint-lzxy@users.noreply.github.com> Signed-off-by: Mohu <miracle_l@bupt.edu.cn> * fixup: remove unused `map_cu`. * chore: use gopls instead of null-ls to format. Signed-off-by: ayamir <lgt986452565@gmail.com> * chore: add notes for config options. Signed-off-by: ayamir <lgt986452565@gmail.com> * fixup: tidy settings for go.nvim and gopls. * docs: update more notes for how to config go.nvim. * chore: cleanup Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> * fix: enable only the options that are truly necessary Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> * fixup! chore: cleanup * fix(gopls): invalid config entry Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> --------- Signed-off-by: ayamir <lgt986452565@gmail.com> Signed-off-by: Mohu <miracle_l@bupt.edu.cn> Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> Co-authored-by: 冷酔閑吟 <50296129+Jint-lzxy@users.noreply.github.com> Co-authored-by: neogtliu <neogtliu@tencent.com>
- Loading branch information
1 parent
85aee10
commit 50b3f46
Showing
7 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
return function() | ||
require("modules.utils").load_plugin("go", { | ||
-- By default, we've turned off these options to prevent clashes with our gopls config | ||
icons = false, | ||
diagnostic = false, | ||
lsp_cfg = false, | ||
lsp_gofumpt = false, | ||
lsp_keymaps = false, | ||
lsp_codelens = false, | ||
lsp_document_formatting = false, | ||
lsp_inlay_hints = { enable = false }, | ||
-- DAP-related settings are also turned off here for the same reason | ||
dap_debug = false, | ||
dap_debug_keymap = false, | ||
textobjects = false, | ||
-- Miscellaneous options to seamlessly integrate with other plugins | ||
trouble = true, | ||
luasnip = false, | ||
run_in_floaterm = false, | ||
}) | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters