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

32 lines
598 B
Nix

{ pkgs, ... }:
{
home.packages = with pkgs; [
(python3.withPackages (ps: with ps; [
debugpy
mccabe
pycodestyle
pyflakes
python-lsp-server
python-lsp-black
]))
];
programs.neovim = {
nvim-dap = ''
require('python.init').nvim_dap()
'';
nvim-lspconfig = ''
require('python.init').nvim_lspconfig()
'';
nvim-snippets = ''
require('luasnip').add_snippets('python', require('python.snippets'))
'';
};
xdg.configFile."nvim/after/ftplugin/python.lua".text = ''
require('utils.dap').buffer_map()
'';
}