Comments (5)
Now that you use mason.nvim to install your tools you need to setup null-ls
after lsp-zero
.
local lsp = require('lsp-zero')
lsp.preset('recommended')
lsp.setup()
local null_ls = require('null-ls')
local null_opts = lsp.build_options('null-ls', {})
null_ls.setup({
on_attach = null_opts.on_attach,
sources = {
--- do whatever you need to do
}
})
from lsp-zero.nvim.
Will the sources from Mason get attached automatically?
Plus, the LSP is still not recognized... not sure what I'm doing wrong.
Edit: It only works when I'm explicitly putting the sources in. Formatting is awfully slow.
from lsp-zero.nvim.
Will the sources from Mason get attached automatically?
No. lsp-zero doesn't interact with null-ls. You have to configure it yourself.
from lsp-zero.nvim.
Ahh okay, Thanks for the fast replies!
E5113: Error while calling lua chunk: ...llar / neovim / 0.7.2_1 / share / nvim / runtime /
lua / vim / _meta.lua: 143: attempt to call field 'nvim_set_option_value'(a nil valu
e)�[K
Error detected while processing / Users / stevenjohn /.local / share / nvim / site / pack / pa
cker / start / Comment.nvim / plugin / Comment.lua:�[K
E5113: Error while calling lua chunk: ...m / site / pack / packer / start / Comment.nvim / p
lugin / Comment.lua: 1: attempt to index field 'keymap'(a nil value)�[K
[nvim - cmp] Your nvim does not has`nvim_create_autocmd` function.Please update�[K
to latest nvim.�[K
Error detected while processing / Users / stevenjohn /.local / share / nvim / site / pack / pa
cker / start / nvim - lspconfig / plugin / lspconfig.lua:�[K
E5113: Error while calling lua chunk: ...te / pack / packer / start / nvim - lspconfig / plu
gin / lspconfig.lua: 15: attempt to call field 'notify_once'(a nil value)�[K
Error detected while processing / Users / stevenjohn /.local / share / nvim / site / pack / pa
cker / start / nvim - rooter.lua / plugin / nvim - rooter.lua:�[K
E5113: Error while calling lua chunk: ...pack / packer / start / nvim - rooter.lua / plugi
n / nvim - rooter.lua: 8: attempt to call local 'cmd'(a nil value)�[K
Error detected while processing / Users / stevenjohn /.local / share / nvim / site / pack / pa
cker / start / nvim - treesitter / plugin / nvim - treesitter.lua:�[K
E5113: Error while calling lua chunk: ...er / start / nvim - treesitter / lua / nvim - trees
itter / install.lua: 6: loop or previous error loading module 'nvim-treesitter.pars
ers'�[K
--More --�[K�]112��[1 q�]112��[1 q�[?25h�[?25l
�[24; 1H�[10XError detected while processing / Users / stevenjohn /.local / share / nvim / site / pack / p�[H�[M�[23B�[J�[23; 80Ha
--More --�[K�[?25h�[?25l�[H�[M�[23BPress ENTER or type command to continue�[K�[?25h
This error overwrites the file on format. This is after adding sources to null-ls.
from lsp-zero.nvim.
Error messages suggest the global variable vim
is either empty or has an unexpected value. Which is a really weird problem.
from lsp-zero.nvim.
Related Issues (20)
- Diagnostic signs in Neovim v0.10.0 and `vim.diagnostic.config()` HOT 2
- suggestions overlap with each other HOT 3
- Add 'linewidth' parameter to 'formatting_options' HOT 2
- Bug: use_fallback = true causing single-repeat issues HOT 3
- autocomplete on tab HOT 1
- How to integrate conform.nvim with lsp-zero.nvim HOT 2
- Need help to load friendly-snippets HOT 1
- lsp_zero.cmp_format() hides important information for rust_analyzer HOT 2
- error installing gopls(same thing happend with hls) HOT 2
- error installing hls(haskell server) HOT 1
- Allow setting max width on vim.diagnostics
- Add docs or possible fix for Volar 2? HOT 4
- method textDocument/definition is not supported by any of the servers registered for the current buffer HOT 6
- Hi @VonHeikemen, came here after an year coz it was unmaintained, i grew up a lot in this time period, help me get back to `lsp-zero` HOT 3
- Undercurls to display errors HOT 2
- How do I turn off inlay hints? HOT 2
- Cannot get auto complete to work HOT 5
- How to configure efm? HOT 1
- Duplicate prefixes HOT 1
- lsp-zero conflict with noice shipped in LazyVim HOT 2
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 lsp-zero.nvim.