Is there a "best practices" style memo for use in NixOS? #406
-
Using NixOS. Neovim and all plugins are loaded into nix store, Lazy never installs anything, it's just for lazy-loading plugins. I have a lot of plugins, 99% work fine. After testing render-markdown on plain ubuntu (and windows) I decided to install it in NixOS. Tried different versions, same error (different line numbers). Checkhealth says:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Lazy loading is definitely finicky (regardless of OS), which is why I do not recommend it in general, too many foot guns. If you disable all of the lazy loading for this plugin do you still run into these errors? When you have lazy loading enabled can you try triggering the lazy load condition, probably by opening a In terms of The errors if anything are tied to the lazy loading setup. Maybe The error you're getting in particular is confusing. Somehow this variable is Which really shouldn't be possible since it gets set as part of the |
Beta Was this translation helpful? Give feedback.
-
this is weird. this config works perfectly well under ubuntu and win10/win11 but fails under nixos. any idea how to enable additional diagnostics? (lazy loads everyrhing in lua/plugins). all files seem to be present and in path.
|
Beta Was this translation helpful? Give feedback.
-
If you open a markdown file does the plugin work, or do you get an error message? Can you try swapping return {
'MeanderingProgrammer/render-markdown.nvim',
lazy = false,
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
config = function()
require('nvim-treesitter.configs').setup({
highlight = { enable = true },
ensure_installed = { "markdown", "markdown_inline" },
})
require('render-markdown').setup({ latex = { enabled = false } })
end
} |
Beta Was this translation helpful? Give feedback.
-
that did the trick, thank you! correction: in nixos i don't need, since all grammars are pre-loaded.
I also had to improve my neovim/treesitter config, specifically, as advised by Grok, added neovim's parsers' path to my generated init.lua. In case anyone esle has this problem when using it with lazy in nixos.
|
Beta Was this translation helpful? Give feedback.
If you open a markdown file does the plugin work, or do you get an error message?
Can you try swapping
nvim-treesitter
andrender-markdown
setup calls?