forked from Shinonome/fred-neovim
Added python capabilities
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{ plugins.dap.extensions.dap-python.enable = true; }
|
||||
@@ -0,0 +1,16 @@
|
||||
let
|
||||
# Read all files in the current directory
|
||||
files = builtins.readDir ./.;
|
||||
|
||||
# Filter out default.nix and non-.nix files
|
||||
nixFiles = builtins.filter
|
||||
(name: name != "default.nix" && builtins.match ".*\\.nix" name != null)
|
||||
(builtins.attrNames files);
|
||||
|
||||
# Create a list of import statements
|
||||
imports = map (name: ./. + "/${name}") nixFiles;
|
||||
in {
|
||||
# Import all configuration modules automatically
|
||||
imports = imports;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
settings = { formatters_by_ft.python = [ "black" ]; };
|
||||
};
|
||||
lsp.servers.pylsp = {
|
||||
enable = true;
|
||||
# pythonPackage = "pkgs.python312Full";
|
||||
settings.plugins = {
|
||||
black.enabled = true;
|
||||
flake8.enabled = true;
|
||||
isort.enabled = true;
|
||||
jedi.enabled = true;
|
||||
mccabe.enabled = true;
|
||||
pycodestyle.enabled = true;
|
||||
pydocstyle.enabled = true;
|
||||
pyflakes.enabled = true;
|
||||
pylint.enabled = true;
|
||||
rope.enabled = true;
|
||||
yapf.enabled = true;
|
||||
};
|
||||
};
|
||||
none-ls.sources.formatting.black.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user