nixos-configs/common/home/neovim/langs/python.nix
matt1432 d4d98bba73
All checks were successful
Discord / discord commits (push) Has been skipped
feat(nvim): switch to cmp and add package-info
2024-07-28 02:54:34 -04:00

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(),
});
'';
};
};
}