This commit is contained in:
meml0rz
2024-11-12 23:35:52 +01:00
parent ce5a8c8b97
commit f1c3152a46
4 changed files with 67 additions and 39 deletions

View File

@ -28,43 +28,6 @@
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
on_press = {
__raw = "function() vim.cmd[[ene]] end";
};
opts = {
shortcut = "n";
};
type = "button";
val = " New file";
}
{
on_press = {
__raw = "function() vim.cmd[[qa]] end";
};
opts = {
shortcut = "q";
};
type = "button";
val = " Quit Neovim";
}
];
}
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Keyword";
position = "center";
};
type = "text";
val = "Inspiring quote here.";
}
];
};
};

View File

@ -8,6 +8,7 @@
./opts.nix
./lualine.nix
./alpha.nix
./dev.nix
];
programs.nixvim = {
enable = true;

9
modules/nix/nvim/dev.nix Normal file
View File

@ -0,0 +1,9 @@
{ config, pkgs, nixvim, ... }:
{
programs.nixvim = {
plugins = {
toggleterm.enable = true;
autoclose.enable = true;
};
};
}

View File

@ -1,8 +1,63 @@
{ config, pkgs, nixvim, ... }:
{
programs.nixvim.plugins = {
rustaceanvim = {
settings = {
server = {
cmd = [
"rustup"
"run"
"nightly"
"rust-analyzer"
];
default_settings = {
rust-analyzer = {
check = {
command = "clippy";
};
inlayHints = {
lifetimeElisionHints = {
enable = "always";
};
};
};
};
standalone = false;
};
};
};
lsp = {
enable = true;
servers = {
asm_lsp = {
enable = true;
autostart = true;
};
clangd = {
enable = true;
autostart = true;
};
gopls = {
enable = true;
autostart = true;
};
lua_ls = {
enable = true;
autostart = true;
};
nixd = {
enable = true;
autostart = true;
};
pyright = {
enable = true;
autostart = true;
};
rust_analyzer = {
enable = true;
autostart = true;
};
};
};
};
}