alpha2phi / neovim-for-beginner

A configuration for Neovim beginners.
MIT License
436 stars 105 forks source link

Null-ls issues #53

Closed abosnjakovic closed 2 years ago

abosnjakovic commented 2 years ago

Hello,

Edit: for any one else having the same issue (seems to be mac related) brew reinstall neovim fixes this issue.

Just pulled the latest mater branch and I am encountering this when attempting for format, it errors regardless of language and/or formatter used.

Error detected while processing BufWritePre Autocommands for "": E5108: Error executing lua .../adam/.config/nvim/lua/config/lsp/null-ls/formatters.lua:23: attempt to call field 'format' (a nil value) stack traceback: .../adam/.config/nvim/lua/config/lsp/null-ls/formatters.lua:23: in function 'format'

In addition to that if I attempt to view function lsp docs I get

E5108: Error executing lua ...site/pack/packer/opt/null-ls.nvim/lua/null-ls/client.lua:39: bad argument #1 to 'unpack' (table expected, got string) stack traceback: [C]: in function 'unpack' ...site/pack/packer/opt/null-ls.nvim/lua/null-ls/client.lua:39: in function 'capability_is_disabled' ...site/pack/packer/opt/null-ls.nvim/lua/null-ls/client.lua:50: in function 'supports_method' ...r/neovim/HEAD-ae325e6/share/nvim/runtime/lua/vim/lsp.lua:1470: in function 'fn' ...r/neovim/HEAD-ae325e6/share/nvim/runtime/lua/vim/lsp.lua:164: in function 'for_each_buffer_client' ...r/neovim/HEAD-ae325e6/share/nvim/runtime/lua/vim/lsp.lua:1469: in function 'request' ...ovim/HEAD-ae325e6/share/nvim/runtime/lua/vim/lsp/buf.lua:61: in function 'hover' [string ":lua"]:1: in main chunk

image

image