Comments (9)
Also in case it's relevant, I'm using go1.18.1 darwin/amd64
from nvim.
I can't seem to repro this, and the failure is coming from the plugin. Are you able to reproduce it consistently? It might be worth opening an issue on ray-x/go.nvim instead
from nvim.
So, I can resolve this issue by adding require'go'.setup()
to the before.lua
in the ~/.config/nvim/lua/user/
directory. However, that seems like something that would be part of this config, rather than user-provided.
Without that change, it is 100% reproducible on my machine - uninstalling neovim (and the python plugins etc) and this config, and reinstalling it, and it consistently fails.
In my comment above I liked to a closed issue on ray-x/go.nvim
which suggests that to fix the problem I'm having:
Make sure require'go'.setup() is called before require'go.lsp'.config()
I don't understand enough of this flow to understand why I need to add this config explicitly whereas it just works for you.
That seems like the sort of thing that would belong in this config. I don't know where I would make that change - I tried
from nvim.
You had said that adding that to before.lua
didn't solve the problem, that's why I thought it'd be something else. I'll add it in the right place.
from nvim.
Can you try after this change?
from nvim.
That seems to fix it.
Before when I was reproducing it, I think I was accidentally adding the line require'go'.setup()
to the user.defaults/before.lua
not user/before.lua
. But my understanding was that these two files would be processed the same way. Maybe I got that wrong.
from nvim.
Thank you for adding this. I still don't understand why you weren't running into this. I assume you had updated all of your plugins?
from nvim.
from nvim.
Alright - I think we're good to close this now. Thank you for your help!
from nvim.
Related Issues (20)
- Merge additional config for a language-server? HOT 2
- Tmux + Tests: Is there a way to automate it exit from visual/search mode? HOT 2
- Add uninstall instructions
- fzf.vim commands not found HOT 2
- Support Macs with `arm` architecture HOT 2
- Vim-grepper is a private repo
- PackerSync fails on a fresh install HOT 2
- Plugins not properly functioning on fresh install until "PackerSync" is run and treesitter runs background update. HOT 2
- <Plug>CloserClose being printed when pressing ENTER HOT 1
- Mixing custom `.vim` configurations HOT 1
- nvim_lsp deprecated
- Error when saving files with go syntax errors: 'Error detected while processing BufWritePre Autocommands for "*.go":' HOT 2
- The after.lua script is not being loaded
- Support for hidden files HOT 4
- telescope find_files broken HOT 4
- Replace vim-ultest with neotest HOT 1
- Error in plugin nvim-autopairs lisp is null
- How to suppress automatic installation message when opening nvim HOT 2
- treesitter errors after update 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 nvim.