make rust-analyzer use clippy by default
and add nushell as its own ls and remove the old cd config
This commit is contained in:
parent
b53b0e8009
commit
db434c2114
2 changed files with 27 additions and 9 deletions
|
@ -25,14 +25,35 @@
|
|||
};
|
||||
};
|
||||
languages = {
|
||||
"php" = {
|
||||
name = "php";
|
||||
file-types = [ "php" ];
|
||||
language-server = {
|
||||
command = "psalm";
|
||||
args = ["--language-server"];
|
||||
language-server."nu-builtin-lsp" = {
|
||||
command = "${config.users.defaultUserShell}/bin/nu";
|
||||
args = [ "--lsp" ];
|
||||
};
|
||||
language-server."rust-analyzer" = {
|
||||
config = {
|
||||
check.command = "clippy";
|
||||
};
|
||||
};
|
||||
# "php" = {
|
||||
# name = "php";
|
||||
# file-types = [ "php" ];
|
||||
# language-server = {
|
||||
# command = "psalm";
|
||||
# args = ["--language-server"];
|
||||
# };
|
||||
# };
|
||||
# "nu" = {
|
||||
# name = "nu";
|
||||
# file-types = [ "nu" ];
|
||||
# language-servers = [{
|
||||
# }];
|
||||
# };
|
||||
language = [
|
||||
{
|
||||
name = "nu";
|
||||
language-servers = [ "nu-builtin-lsp" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -150,9 +150,6 @@ $env.config = {
|
|||
always_trash: true # always act as if -t was given. Can be overridden with -p
|
||||
}
|
||||
|
||||
cd: {
|
||||
}
|
||||
|
||||
table: {
|
||||
mode: reinforced # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
|
||||
index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
|
||||
|
|
Loading…
Reference in a new issue