nixos-configuration/users/jrpotter/lang/python.nix

28 lines
489 B
Nix
Raw Normal View History

2023-11-22 18:14:10 +00:00
{ pkgs, ... }:
{
2023-11-22 18:14:10 +00:00
home.packages = with pkgs; [
(python3.withPackages (ps: with ps; [
debugpy
mccabe
pycodestyle
pyflakes
python-lsp-server
python-lsp-black
]))
];
programs.neovim = {
nvim-dap = ''
require('init.python').nvim_dap()
'';
nvim-lspconfig = ''
require('init.python').nvim_lspconfig()
'';
};
xdg.configFile."nvim/after/ftplugin/python.lua".text = ''
require('init.dap').buffer_map()
'';
}