Giter Club home page Giter Club logo

Comments (5)

VonHeikemen avatar VonHeikemen commented on May 25, 2024 2

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.

StevenJPx2 avatar StevenJPx2 commented on May 25, 2024

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.

VonHeikemen avatar VonHeikemen commented on May 25, 2024

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.

StevenJPx2 avatar StevenJPx2 commented on May 25, 2024

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.

VonHeikemen avatar VonHeikemen commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.