nixos-configs/homeManagerModules/neovim/langs/python.nix
matt1432 11adcacd6f
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(nvim): move to homeManagerModules
2024-11-22 02:48:41 -05:00

29 lines
487 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.programs.neovim;
in
mkIf cfg.enableIde {
programs = {
neovim = {
withPython3 = true;
extraPackages = [
pkgs.basedpyright
];
extraLuaConfig =
# lua
''
require('lspconfig').basedpyright.setup({
capabilities = require('cmp_nvim_lsp').default_capabilities(),
});
'';
};
};
}