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

29 lines
485 B
Nix
Raw Normal View History

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