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

28 lines
490 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 = ''
2024-02-24 23:08:58 +00:00
require('lang.python').nvim_dap()
'';
nvim-lspconfig = ''
2024-02-24 23:08:58 +00:00
require('lang.python').nvim_lspconfig()
2024-01-04 17:21:22 +00:00
'';
};
xdg.configFile."nvim/after/ftplugin/python.lua".text = ''
2024-01-04 17:01:01 +00:00
require('utils.dap').buffer_map()
'';
}