Comments (21)
Your
go.mod
need line like this:
The module name is yourroot_dir
's name normally. Itsgopls
's request.
Oh sorry I just run the go file and it said go.mod not set up , and I follow the default set up for go.mod and finally worked, just like your advise. I really appreciate your neovim set up. Thanks again!!
from nvimdots.
Servers installed by nvim-lspinstall
is stored permanently on your disk.
You can execute ls ~/.local/share/nvim
to check if a directory called lspinstall
exists.
from nvimdots.
from nvimdots.
from nvimdots.
I have already installed it, and it will not be loaded automatically. Every time I open vim, I have to execute it manually: lspinstall go
from nvimdots.
execute LspInfo
when you enter this buffer, correct result is like this:
from nvimdots.
You may need to git pull
to get my latest updates.
from nvimdots.
from nvimdots.
Do you have go.mod
in this directory?
from nvimdots.
#21 (comment)
Just pull is still not working, the directory has go.mod
from nvimdots.
The correct sequence is this:
from nvimdots.
hey , does your go work? i try it and it work ,just touch go.mod and main.go,it work.
i find if i not touch main.go,I just nvim main.go,the lsp is not work,may this is answer.
so you should touch main.go then nvim main.go
from nvimdots.
from nvimdots.
Mine is not work on go, but it work on python. I runned LspInstall python just like I runned LspInstall go, but python can work automatically and go failed.
from nvimdots.
I assume that Lsp server has installed the gopls ,but the autocompletion not configure.
How to set it up?
from nvimdots.
Mine is not work on go, but it work on python. I runned LspInstall python just like I runned LspInstall go, but python can work automatically and go failed.
golsp
need to detect your directory if a work directory or not. Please refer to this and this.
from nvimdots.
Mine is not work on go, but it work on python. I runned LspInstall python just like I runned LspInstall go, but python can work automatically and go failed.
golsp
need to detect your directory if a work directory or not. Please refer to this and this.
Thank you for your time for a newbee. It work well after adding go.mod . However I wonder why the autocompletion on go still not perform like on python, when I want to type Print, it does not show any code suggestion. Is there anything that I should set up?
from nvimdots.
Mine is not work on go, but it work on python. I runned LspInstall python just like I runned LspInstall go, but python can work automatically and go failed.
golsp
need to detect your directory if a work directory or not. Please refer to this and this.Thank you for your time for a newbee. It work well after adding go.mod . However I wonder why the autocompletion on go still not perform like on python, when I want to type Print, it does not show any code suggestion. Is there anything that I should set up?
Did gopls
attact to your buffer? You can check this via lualine
quickly. Autocompletion is out of the box if gopls
starts correctly.
from nvimdots.
from nvimdots.
Your go.mod
need line like this:
The module name is your root_dir
's name normally. Its gopls
's request.
from nvimdots.
from nvimdots.
Related Issues (20)
- Questions (Thoughts) regarding recent changes HOT 4
- Update catppuccin version (Huge performance issue on nightly) HOT 3
- How to modify keymap for Vim plugin HOT 13
- How to configure plugins for neovim to support Rust-DAP and smart tips for variable types in Rust HOT 5
- maybe load_extension fzf bug HOT 2
- Can't switch open-tabs HOT 3
- How to setup the python environment? HOT 32
- treesitter parser [swift] having issue when lazy-loading ts-related plugins HOT 11
- How to (re)install nvimdots HOT 5
- <C-V> in NvimTree can't work HOT 7
- In Inerst mode use <capslock> mapping <Esc> not work HOT 6
- How to custom user config for nvim-cmp mapping HOT 5
- replace `vim.tbl_islist()` with `vim.islist()` after `NVIM v0.10.0-dev-2560` HOT 3
- golang code hints default selected location is incorrect
- Color scheme HOT 2
- Sluggish WSL clipboard communication HOT 2
- skip lines when executing multiple macro operations HOT 9
- UI FIX HOT 3
- [migration] Nvim 0.10 Support HOT 2
- `<CR>` triggers autocompl instead of line break HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvimdots.