2024-05-07 22:49:00 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-05-25 20:28:35 -04:00
|
|
|
pkgs,
|
2024-05-07 22:49:00 -04:00
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.vars) neovimIde;
|
|
|
|
in
|
|
|
|
lib.mkIf neovimIde {
|
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
withPython3 = true;
|
|
|
|
|
2024-05-11 20:10:45 -04:00
|
|
|
extraPackages = [
|
2024-05-25 20:28:35 -04:00
|
|
|
pkgs.basedpyright
|
2024-05-07 22:49:00 -04:00
|
|
|
];
|
|
|
|
|
2024-05-11 20:10:45 -04:00
|
|
|
extraLuaConfig =
|
2024-06-09 22:49:30 -04:00
|
|
|
# lua
|
2024-05-11 20:10:45 -04:00
|
|
|
''
|
2024-07-28 02:54:34 -04:00
|
|
|
require('lspconfig').basedpyright.setup({
|
|
|
|
capabilities = require('cmp_nvim_lsp').default_capabilities(),
|
|
|
|
});
|
2024-05-11 20:10:45 -04:00
|
|
|
'';
|
2024-05-07 22:49:00 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|