mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
having fun with nixvim
This commit is contained in:
parent
851eaf80ee
commit
dc4c8a81e1
5 changed files with 158 additions and 57 deletions
11
features/neovim/default.nix
Normal file
11
features/neovim/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
||||
colorschemes.catppuccin = {
|
||||
enable = true;
|
||||
settings.flavour = "latte";
|
||||
};
|
||||
};
|
||||
}
|
14
features/neovim/keys.nix
Normal file
14
features/neovim/keys.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
|
||||
};
|
||||
};
|
||||
}
|
78
features/neovim/plugins.nix
Normal file
78
features/neovim/plugins.nix
Normal file
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
asm_lsp.enable = true;
|
||||
gopls.enable = true;
|
||||
java_language_server.enable = true;
|
||||
rust-analyzer.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
nvim-cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
sources = [
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "path"; }
|
||||
{ name = "buffer"; }
|
||||
|
||||
];
|
||||
};
|
||||
barbar.enable = true;
|
||||
gitsigns.enable = true;
|
||||
|
||||
comment = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
treesitter = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
web-devicons = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
emmet = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
nvim-autopairs = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
presence-nvim = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
chadtree = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
fzf-lua = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
notify = true;
|
||||
|
||||
neotest = {
|
||||
enable = true;
|
||||
adapters = {
|
||||
rust.enable = true;
|
||||
python.enable = true;
|
||||
java.enable = true;
|
||||
go.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue