goimports
nvim-cmp
Our great sponsors
goimports | nvim-cmp | |
---|---|---|
46 | 250 | |
7,185 | 6,916 | |
1.2% | - | |
9.9 | 7.5 | |
about 17 hours ago | 2 days ago | |
Go | Lua | |
BSD 3-clause "New" or "Revised" License | 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.
goimports
-
How to find all methods which return struct "Foo" (vscode or cli)
Just a guess, but it might be somewhere in gopls https://github.com/golang/tools/tree/master/gopls/doc On this page https://langserver.org/ it says it should support "finding references"
- GitHub - orijtech/structslop: structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
-
betteralign - structs field alignment static analyzer for Go
For more gopls settings, you can see files in this folder: https://github.com/golang/tools/tree/master/gopls/doc
-
Linter for explicit hint to interface which gets implemented.
But finding which interface is satisfied by a type is trivial anyways through gopls which integrates conveniently into any LSP supporting IDE (such as VSCode and Goland).
-
LMDE5 + VSCodium setup issues
Error loading workspace: gopls was not able to find modules in your workspace. When outside of GOPATH, gopls needs to know which modules you are working on. You can fix this by opening your workspace to a folder inside a Go module, or by using a go.work file to specify multiple modules. See the documentation for more information on setting up your workspace: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.
-
How to use AWS SAM with Go in Visual Studio Code
The ResponseEvent struct. The reason for this is that the IDE has set the GOPATH to the root of the project. Therefor the imports are not correct. By using Workspace Folders you can change this behavior so that each folder has it’s own scope.
-
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.
Here are a few resources to get you started: 1. https://github.com/neovim/nvim-lspconfig 1. https://github.com/golang/tools/tree/master/gopls 1. https://github.com/williamboman/nvim-lsp-installer
-
Using multiple repositories in your CI builds
Like with the previous post, we're going to use djinn-ci/imgsrv as an example of using multiple sources in a build manifest. If we look at the top of the manifest file, we will see that it requires three repositories to build. These are, the source code for djinn-ci/imgsrv itself, golang/tools, and valyala/quicktemplate, defined like so,
-
Go Linux/Debian users which is the apt command to install Go via terminal?
Other useful solutions: https://github.com/golang/tools/tree/master/cmd/getgo https://go.dev/doc/manage-install
-
LSP codelens and inlayhints
I was reading about some of the gopls settings and ended up enabling a few, especially about codelens and inlayhints, only to come to the realization that more work is needed to make them work.
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
coq.artifacts
completion-nvim - A async completion framework aims to provide completion to neovim's built in LSP written in Lua
gofumpt - A stricter gofmt
LuaSnip - Snippet Engine for Neovim written in Lua.
rust-tools.nvim - Tools for better development in rust using neovim's builtin lsp
ddc.vim - Dark deno-powered completion framework for neovim/Vim
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
nvim-lspconfig - Quickstart configs for Nvim LSP
coc-r-lsp - R LSP Client for coc.nvim
nvim-treesitter - Nvim Treesitter configurations and abstraction layer