++++++
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
nixfmt-classic # nix formater
|
||||
nil # nix language server
|
||||
python311Packages.python-lsp-server
|
||||
ruff
|
||||
ruff-lsp
|
||||
pyright
|
||||
lldb # debugger for llvm stuff
|
||||
yaml-language-server # yaml
|
||||
marksman # markdown
|
||||
@@ -73,12 +76,39 @@
|
||||
file-types = [ "md" "MD" ];
|
||||
scope = "text.<name>";
|
||||
}
|
||||
# {
|
||||
# name = "python";
|
||||
# transport = "stdio";
|
||||
# command = "python3";
|
||||
# args = ["-m" "debugpy.adapter"];
|
||||
# }
|
||||
|
||||
{
|
||||
name = "python";
|
||||
language-servers = [ "pyright" "ruff" ];
|
||||
formatter = {
|
||||
command = "ruff";
|
||||
args = [
|
||||
"format"
|
||||
"--line-length"
|
||||
"120"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
debugger = {
|
||||
name = "debugpy";
|
||||
transport = "stdio";
|
||||
command = "python";
|
||||
args = [ "-m" "debugpy.adapter" ];
|
||||
templates = [{
|
||||
name = "source";
|
||||
request = "launch";
|
||||
completion = [{
|
||||
name = "entrypoint";
|
||||
completion = "filename";
|
||||
default = ".";
|
||||
}];
|
||||
args = {
|
||||
mode = "debug";
|
||||
program = "{0}";
|
||||
};
|
||||
}];
|
||||
};
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
"style-check" = {
|
||||
@@ -87,6 +117,26 @@
|
||||
"language-tool" = {
|
||||
command = lib.getExe pkgs.ltex-ls;
|
||||
};
|
||||
"ruff" = {
|
||||
command = "ruff-lsp";
|
||||
config.settings.args = [
|
||||
# Set line length
|
||||
# "--line-length"
|
||||
# "79"
|
||||
|
||||
# Enable some ruff rules
|
||||
# "--select"
|
||||
# (
|
||||
# "F,W,E,I,N,D200,D201,D202,D203,D204,D205,D206,D207,D208,D209,D210,D211,"
|
||||
# + "D212,D213,D214,D215,D300,D301,D400,D401,D402,D403,D404,D405,D406,"
|
||||
# + "D407,D408,D409,D410,D411,D412,D413,D414,D415,D416,D417,D418,D419,"
|
||||
# + "UP,YTT,TRIO,ASYNC,B,A,COM,C4,DTZ,T10,DJ,EXE,FA,ISC,ICN001,G010,"
|
||||
# + "G101,G201,G202,INP,PIE,Q,RSE,RET,SLOT,SIM,TCH,INT,ARG,PTH,TD001,"
|
||||
# + "TD004,TD005,TD006,TD007,PD,PL,TRY004,TRY200,TRY201,TRY302,TRY400,"
|
||||
# + "TRY401,FLY,NPY,AIR,PERF,FURB,LOG,RUF"
|
||||
# )
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
themes = {
|
||||
|
||||
Reference in New Issue
Block a user