Comments (5)
Okay, I'm just dumb, the problem was that I didn't pass an empty table to lspconfig.rust_analyzer.setup()
.
I still do not know what did you mean here though.
from nvim-lspconfig.
init is lspconfig iniit .not lazy init
from nvim-lspconfig.
init is lspconfig iniit .not lazy init
I'm sorry, but I'm not sure I understand.
from nvim-lspconfig.
@Blayung exactly my issue too. Thank you for catching that. The documentation shows
require("lspconfig")[server_name].setup {}
and I, not understanding the lua syntax, did
require("lspconfig")[server_name].setup()
which means I'm calling setup
with the 1st parameter being nil
when it should be{}
so, if you want to keep the parentheses:
require("lspconfig")[server_name].setup({})
is what you want.
from nvim-lspconfig.
@andradei Yeah, I also have close to zero experience with lua, so I thought that I'll just prettify it and it stopped working. Didn't use lsp for a few days because of it :D
The formatting in the nvim lsp docs is terrible, i have no idea how can they use such syntax.
from nvim-lspconfig.
Related Issues (20)
- Workspaces not added to the server again when initially removed HOT 16
- Custom commands field collide with `vim.lsp.client` definition on nvim nightly HOT 1
- Error when editing multiple files with `gt` HOT 2
- [lspconfig] Cannot access configuration for mdx_analyzer. HOT 2
- nvim-lspconfig is the only plugin to startup slow on WSL HOT 2
- Consider renaming twig-language-server HOT 1
- :LspRestart - `Error Executing vim.schedule` HOT 7
- Inteliphense format clear all marks HOT 1
- The current Wiki about UI customization of handlers for `textDocument/hover` is buggy! HOT 1
- typos-lsp server crashes on :ToggleTerm direction=float<CR> HOT 1
- terraformls stacktrace with d23cb955094ca4a392df5774cd9dbf6af2ba6e0c HOT 5
- On nightly, the default config for lua_ls is broken HOT 5
- Addition of oxlint. HOT 3
- InlayHints don't work with gopls HOT 2
- HTML or CSS LSP doesn't provide any autocompletion HOT 5
- Multi workspace support for language servers broken after 0a1a2aa5 HOT 5
- Using vim.emtpy_dict or empty table in combination with deep_extend is breaking user configs
- (Help) [Pyright] - Pythonpath being set to .pyenv within the LSP logs, I have no clue why HOT 2
- Custom command name may not conform user command naming rules HOT 8
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-lspconfig.