Default Configuration - install_root_path #313
-
I used the default configuration file for the purpose of learning about lua/lsp/mason. I realize these are defaults I'd get if I didn't use the file at all. However, I want to understand what I'm missing here. This line causes an error at startup: install_root_dir = path.concat { vim.fn.stdpath "data", "mason" }, The error is: Someone in IRC mentioned plenary, so I included it and called plenary.path:concat. (that may be ridiculous, but I was without much of a clue). The path was recognized, but concat was not. Would someone please help me figure out what it is I'm missing? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! The snippet that contains the default configuration is just copy pasted from the internal install_root_dir = vim.fn.stdpath("data") .. "/mason" |
Beta Was this translation helpful? Give feedback.
Hello! The snippet that contains the default configuration is just copy pasted from the internal
settings.lua
file. It has an import forpath
(which is an internal, non-public, mason module). The reason it's used is for nicer cross-platform paths. If you only intend to use your neovim config on a UNIX system then you can substitute that with something like