vim-go
nvim-cmp
Our great sponsors
vim-go | nvim-cmp | |
---|---|---|
25 | 250 | |
15,811 | 6,916 | |
- | - | |
8.3 | 7.5 | |
10 days ago | 1 day ago | |
Vim Script | Lua | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-go
-
nvim when I open an empty file from go
There are a handful of really good go plugins that take care of this for you, such as https://github.com/ray-x/go.nvim or https://github.com/fatih/vim-go
-
What's the most commonly used IDE for golang development ?
With vim-go and snippets, neovim has almost the same functionality as GoLand
- Is there any way to autocomplete language functions? For example, show things like fmt.Printf or fmt.Println when writing fmt.Print and pressing the autocomplete key.
-
Which editor do you use for your Go coding?
Neovim with its lsp integration. Yes, my configuration breaks whenever neovim is upgraded (it is < v1 after all). But usually I wait a little while, and then update plugins and I’m good to ‘go’. One very very good plug-in is https://github.com/fatih/vim-go. The wiki page has a suggested vimrc, which works very well to integrate things like identifier highlighting, and references.
with this wonderful plugin: https://github.com/fatih/vim-go
- What's your Golang IDE?
-
Anyone write Go full time using vim?
At first Ihad struggled with some common "IDE" tasks. But then I discovered vim-go and realized that it could do pretty much everything that I need and even more.
-
Share your must-know Go development tips
I use vim as an editor, and I think that vim-go (https://github.com/fatih/vim-go) is a huge help, if you use the "gd" shortcut to take you to where a variable, type or function is defined, and the ctrl-T shortcut to take you back. Use goimports (https://pkg.go.dev/golang.org/x/tools/cmd/goimports) as the vim-go code formatter. This will keep imports up-to-date. There are some other vim-go features that may be helpful. You can have it highlight syntax errors, for example. Not every feature is helpful to every programmer, however.
-
vim-rust go-to-definition doesn't work with standard library features
Maybe there's a reason why this isn't possible, but if I compare this work-flow with something like https://github.com/fatih/vim-go I can use go-to-definition for everything (whether it be a third-party package or a standard library feature such as fmt.Printf).
nvim-cmp
-
cmp border background is changed all of a sudden.
Doing a fast scan on the commit history this is probably related to https://github.com/hrsh7th/nvim-cmp/pull/1689 . Hope it helps.
-
Do I need NeoVIM?
https://github.com/hrsh7th/nvim-cmp This is an autocompletion engine https://github.com/nvim-treesitter/nvim-treesitter This allows NeoVim to install parsing scripts so NeoVim can do things like code highlighting. https://github.com/williamboman/mason.nvim Not strictly necessary, but allows you to access a repo of LSP, install them, and configure them for without you actively messing about in config files. https://github.com/neovim/nvim-lspconfig Also not strictly necessary, but vastly simplifies LSP setup. https://github.com/williamboman/mason-lspconfig.nvim This lets the above two plugins talk to each other more easily.
-
[Need Help]: I am having trouble getting autocomplete with clangd.
You need to add nvim-cmp and cmp-nvim-lsp
-
Enabling python's snippets.
I don't know about lsp-zero since I don't use it, but to get luasnip auto completions from nvim-cmp you should add luasnip to its sources. Then you should get auto completions. Check the recommended configuration of nvim-cmp.
-
How to test lsp performance
However, many language clients are indeed sensitive to the latency of language servers like https://github.com/ray-x/lsp_signature.nvim and https://github.com/hrsh7th/nvim-cmp, and I do not have the ability to improve them.
PS: I suspect that this https://github.com/hrsh7th/nvim-cmp/issues/1606 may also be related to some slower lsp.
-
What plugins do you use to manage html tags in jsx/tsx files?
nvim-cmp + emmet_ls
- I've been away for ~3 years and my config is vimscript-coc-plug-etc. Worth moving to the 'new thing', and good resources to get up to date?
-
How could one learn to customize Neovim?
nvim-cmp : Code Completion
- neovim and platformio tutorial
What are some alternatives?
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
cmp-nvim-lsp - nvim-cmp source for neovim builtin LSP client
coc-go - Go language server extension using gopls for coc.nvim.
coq.artifacts
completion-nvim - A async completion framework aims to provide completion to neovim's built in LSP written in Lua
go.nvim - A feature-rich Go development plugin, leveraging gopls, treesitter AST, Dap, and various Go tools to enhance the dev experience.
LuaSnip - Snippet Engine for Neovim written in Lua.
rust-tools.nvim - Tools for better development in rust using neovim's builtin lsp
Go for Visual Studio Code
YouCompleteMe - A code-completion engine for Vim
ddc.vim - Dark deno-powered completion framework for neovim/Vim