diff --git a/modules/nixvim/dev-plugins.nix b/modules/nixvim/dev-plugins.nix index 4e3424e..fdfaff1 100644 --- a/modules/nixvim/dev-plugins.nix +++ b/modules/nixvim/dev-plugins.nix @@ -44,13 +44,12 @@ in enable = true; servers = { # Pyright needs to have the project root set? - basedpyright.rootMarkers = [ - "flake.nix" - ".git" - ".jj" - "pyproject.toml" - "setup.py" - ]; + basedpyright.rootDir = # lua + '' + function() + return vim.fs.root(0, {'flake.nix', '.git', '.jj', 'pyproject.toml', 'setup.py'}) + end + ''; # Big but infrequently used dependencies. # # Configure the LSPs, but don't install the packages.