fix: rust-analyzer binary path
This commit is contained in:
parent
9ed1af62e4
commit
38df85a42a
1 changed files with 64 additions and 13 deletions
|
|
@ -295,6 +295,20 @@ in {
|
||||||
'';
|
'';
|
||||||
desc = "Highlight yanked";
|
desc = "Highlight yanked";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
event = ["BufWritePost"];
|
||||||
|
callback =
|
||||||
|
mkLuaInline
|
||||||
|
# lua
|
||||||
|
''
|
||||||
|
function(args)
|
||||||
|
local bufname = vim.api.nvim_buf_get_name(args.buf)
|
||||||
|
local info = string.format("Saved %s", vim.fn.fnamemodify(bufname, ":t"))
|
||||||
|
require("fidget").notify(info, vim.log.levels.INFO)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
desc = "Fidget notify file saved";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
|
|
@ -316,6 +330,7 @@ in {
|
||||||
autoindent = true;
|
autoindent = true;
|
||||||
smartindent = true;
|
smartindent = true;
|
||||||
fillchars = "eob: ";
|
fillchars = "eob: ";
|
||||||
|
wrap = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
|
|
@ -363,11 +378,29 @@ in {
|
||||||
|
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
css.enable = true;
|
css.enable = true;
|
||||||
rust.enable = true;
|
rust = {
|
||||||
|
enable = true;
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
package = [
|
||||||
|
"rust-analyzer"
|
||||||
|
];
|
||||||
|
opts = ''
|
||||||
|
['rust-analyzer'] = {
|
||||||
|
cargo = {allFeature = true},
|
||||||
|
checkOnSave = true,
|
||||||
|
procMacro = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
nix = {
|
nix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
server = "nixd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
sql.enable = true;
|
sql.enable = true;
|
||||||
|
|
@ -686,18 +719,36 @@ in {
|
||||||
ui = {
|
ui = {
|
||||||
noice = {
|
noice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts.routes = [
|
setupOpts = {
|
||||||
# Hide neo-tree notification
|
routes = [
|
||||||
{
|
# Hide neo-tree notification
|
||||||
filter = {
|
{
|
||||||
event = "notify";
|
filter = {
|
||||||
kind = "info";
|
event = "notify";
|
||||||
any = [
|
kind = "info";
|
||||||
{find = "hidden";}
|
any = [
|
||||||
];
|
{find = "hidden";}
|
||||||
};
|
];
|
||||||
}
|
};
|
||||||
];
|
}
|
||||||
|
# Hide Save
|
||||||
|
{
|
||||||
|
filter = {
|
||||||
|
event = "msg_show";
|
||||||
|
kind = "bufwrite";
|
||||||
|
};
|
||||||
|
opts = {skip = true;};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
filter = {
|
||||||
|
event = "msg_show";
|
||||||
|
any = [
|
||||||
|
{find = "written";}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
colorizer.enable = true;
|
colorizer.enable = true;
|
||||||
fastaction.enable = true;
|
fastaction.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue