fix(nvim): switch to basedpyright #177

Merged
jalil merged 1 commit from use-basedpyright into main 2024-12-10 23:24:03 +01:00
Showing only changes of commit ba18d62549 - Show all commits

View file

@ -9,13 +9,13 @@ let
inherit (helpers) enableExceptInTests; inherit (helpers) enableExceptInTests;
cfg = config.jhome.nvim; cfg = config.jhome.nvim;
enabledLSPs = [ enabledLSPs = [
"basedpyright"
"bashls" "bashls"
"clangd" "clangd"
# "html" # Not writing html # "html" # Not writing html
"jsonls" "jsonls"
"marksman" "marksman"
"nixd" "nixd"
"pyright"
"ruff" "ruff"
"taplo" "taplo"
# "texlab" # Not using it # "texlab" # Not using it
@ -45,6 +45,13 @@ in
lsp = { lsp = {
enable = true; enable = true;
servers = { servers = {
# Pyright needs to have the project root set?
basedpyright.rootDir = # lua
''
function()
return vim.fs.root(0, {'flake.nix', '.git', '.jj', 'pyproject.toml', 'setup.py'})
end
'';
bashls.package = lib.mkDefault pkgs.bash-language-server; bashls.package = lib.mkDefault pkgs.bash-language-server;
# Adds ~2 GiB, install in a devShell instead # Adds ~2 GiB, install in a devShell instead
clangd.package = lib.mkDefault null; clangd.package = lib.mkDefault null;