nixos-configs/common/home/neovim/langs/python.nix
matt1432 69f6134563
All checks were successful
Discord / discord commits (push) Has been skipped
feat(nvim): setup basedpyright
2024-05-11 20:10:45 -04:00

29 lines
510 B
Nix

{
config,
lib,
pkgs,
basedpyright,
...
}: let
inherit (config.vars) neovimIde;
in
lib.mkIf neovimIde {
programs = {
neovim = {
withPython3 = true;
extraPackages = [
basedpyright.legacyPackages.${pkgs.system}.basedpyright
];
extraLuaConfig =
/*
lua
*/
''
require('lspconfig').basedpyright.setup(
require('coq').lsp_ensure_capabilities({}));
'';
};
};
}