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

32 lines
598 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-01-04 17:01:01 +00:00
require('python.init').nvim_dap()
'';
nvim-lspconfig = ''
2024-01-04 17:01:01 +00:00
require('python.init').nvim_lspconfig()
'';
2024-01-04 17:21:22 +00:00
nvim-snippets = ''
require('luasnip').add_snippets('python', require('python.snippets'))
'';
};
xdg.configFile."nvim/after/ftplugin/python.lua".text = ''
2024-01-04 17:01:01 +00:00
require('utils.dap').buffer_map()
'';
}