27 lines
467 B
Nix
27 lines
467 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (config.vars) neovimIde;
|
|
in
|
|
lib.mkIf neovimIde {
|
|
programs = {
|
|
neovim = {
|
|
withPython3 = true;
|
|
|
|
extraPackages = [
|
|
pkgs.basedpyright
|
|
];
|
|
|
|
extraLuaConfig =
|
|
# lua
|
|
''
|
|
require('lspconfig').basedpyright.setup({
|
|
capabilities = require('cmp_nvim_lsp').default_capabilities(),
|
|
});
|
|
'';
|
|
};
|
|
};
|
|
}
|