neotest(https://github.com/nvim-neotest/neotest) 支持多语言Adapter的测试插件,目前我配置了neotest-golang来运行Golang的测试。 coverage(https://github.com/andythigpen/nvim-coverage) 展示当前文件的测试覆盖情况,可以精准提升测试覆盖率 Golang gopher(https://github.com/olexsmir/gopher.nvim) 专注于G...
autopairs conform codeium guess-indent 查找 telescope Git gitsigns blame Test neotest coverage Golang gopher overseer 其他 toggleterm markdown-preview which-key dap 简介 这个文章主要是和大家分享一下我这一年从Vim切换到Neovim来开发Golang的相关配置。 Neovim是Vim的一个fork,我选择Neovim代替Vim的主要原因...
golang x 13 web-development x 12 session x 12 fuzzy-finder x 11 snippet x 11 tabline x 11 tmux x 11 indent x 10 scrolling x 10 external x 10 syntax x 9 startup x 9 completion x 8 diagnostics x 8 plugin-manager x 7 colorscheme-creation x 7 remote-development x 7 colorscheme-...
对于 go 微服务后台开发来说,补全/跳转/错误提示/名称重构基本就够用了,还有一些 vim-go 笔者常用的一些命令辅助提升开发效率。 # 最近一直在开发机服务器上直接用 neovim+vim-go 写 golang,具有完备开发功能(vim-go借助各种go工具实现) # https://github.com/fatih/vim-go # https://github.com/fatih/vim...
Auto format with:GoFormat(viagoimports,gofmt,gofumptandlsp) when saving. Run linters with:GoLint(viarevive) automatically. Quickly test with:GoTest,:GoTestFunc,:GoTestFileand:GoTestAll. Generate test with:GoAddTest. Import packages with:GoGetand:GoImport. ...
Note: auto-fill struct also supported by gopls lsp-action commandDescription GoFillStruct auto fill struct GoFillSwitch fill switch GoIfErr Add if err GoFixPlurals change func foo(b int, a int, r int) -> func foo(b, a, r int) GoFixPlurals Youtube video package foo import "io" fun...
gofmt 和goimport 在格式化文档的时候会将缩进以制表符(tab)形式替代,Vim/NeoVim 在显示制表符的时候会以 ^I^I 显示,所以你就看见了上图的效果。 这个时候,我们可以在 golang 的LSP 配置文件中设置 set list=false或 在全局配置中 set listchars="space:·;tab:··" ,我们再次进入 Vim 中看见的效果就正...
"golang": { "command": "gopls", "rootPatterns": ["go.mod"], "filetypes": ["go"], "initializationOptions": { "gocodeCompletionEnabled": true, "diagnosticsEnabled": true, "lintTool": "golint" } }, "bash": { "command": "bash-language-server", "args": ["st...
gofmt和goimport在格式化文档的时候会将缩进以制表符(tab)形式替代,Vim/NeoVim 在显示制表符的时候会以^I^I显示,所以你就看见了上图的效果。 这个时候,我们可以在golang的 LSP 配置文件中设置set list=false或 在全局配置中set listchars="space:·;tab:··",我们再次进入 Vim 中看见的效果就正常了。
extras.lang.svelte", "lazyvim.plugins.extras.lang.terraform", "lazyvim.plugins.extras.lang.toml", "lazyvim.plugins.extras.lang.typescript", "lazyvim.plugins.extras.test.core", "lazyvim.plugins.extras.util.mini-hipatterns", "rafi.plugins.extras.lang.ansible", "rafi.plugins.extras.lang.go"...