kekl
This commit is contained in:
@ -28,43 +28,6 @@
|
|||||||
type = "padding";
|
type = "padding";
|
||||||
val = 2;
|
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.";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
./opts.nix
|
./opts.nix
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
./alpha.nix
|
./alpha.nix
|
||||||
|
./dev.nix
|
||||||
];
|
];
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
9
modules/nix/nvim/dev.nix
Normal file
9
modules/nix/nvim/dev.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, nixvim, ... }:
|
||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
toggleterm.enable = true;
|
||||||
|
autoclose.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,8 +1,63 @@
|
|||||||
{ config, pkgs, nixvim, ... }:
|
{ config, pkgs, nixvim, ... }:
|
||||||
{
|
{
|
||||||
programs.nixvim.plugins = {
|
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 = {
|
lsp = {
|
||||||
enable = true;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user