How to configure null-ls? #966
Replies: 1 comment 2 replies
-
I strongly urge you to avoid null-ls for formatting, linting and so on; nvf has had support for nvim-lint and conform for a while now, which are used internally and much better maintained by null-ls. Though, in the case you insist on using null-ls the solution is simple. You must define sources as raw lua code, which is done with vim.lsp.null-ls.setupOpts.sources = lib.mkLuaInline ''
-- Everything in this string will be interpreted as raw lua!
''; The above snippet should resolve the issue. If you are curious to why |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to setup null-ls, but I can't get the setup opts to work. I want to have null-ls run clang-tidy and clang-check, but I just can't figure out how to do it. Everything I've tried fails to build, stating that
programs.nvf.settings.vim.lsp.null-ls.setupOpts.sources."[definition 1-entry 1]"' is not of type
luaInline'`Beta Was this translation helpful? Give feedback.
All reactions