Replies: 1 comment 7 replies
-
Those ensure_installed etc are custom attributes of the plugin that I use in its plugin config. You can set any attributes you want. My config extends the plugins from You can find the original specs here https://github.com/folke/LazyVim/blob/main/lua/lazyvim/plugins/lsp/init.lua Those are loaded first by lazy and then my own specs that override anything that is in LazyVim. I hope this now makes more sense :) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using mason along with mason-lspconfig as well as mason-tool-installer, and this requires a certain order of initialization. mason needs to be initialized first, followed by mason-lspconfig, followed by nvim-lspconfig, etc. I have my mason setup in its own
mason.lua
with a config method, and I in my lspconfig setup I do arequire("mason")
.This alone doesn't seem to load mason and run the config function. If I keep my
mason.lua
as is and add"williamboman/mason.nvim"
as a dependency of nvim-lspconfig instead ofrequire("mason")
in my lspconfig config, mason is loaded properly before my lspconfig setup.@folke , I've used your dotfiles a lot for inspiration, and I have to admit your latest changes have me a bit confused. For mason you have
ensure_installed
directly in the plugin spec table instead of as part ofconfig
. Same thing withservers
for nvim-lspconfig. In an earlier version I think I remember seeing you also doingrequire("mason")
, but now I don't know what to think with the latest changes lol.Beta Was this translation helpful? Give feedback.
All reactions