nvim
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
url = "git+ssh://git@github.com/cschmatzler/nixos-config-secrets.git";
|
url = "git+ssh://git@github.com/cschmatzler/nixos-config-secrets.git";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
nixvim = {
|
||||||
|
url = "github:nix-community/nixvim";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
|
|||||||
22
profiles/base/home-manager/neovim/default.nix
Normal file
22
profiles/base/home-manager/neovim/default.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./options.nix
|
||||||
|
./plugins
|
||||||
|
];
|
||||||
|
|
||||||
|
home.shellAliases.v = "nvim";
|
||||||
|
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
|
||||||
|
nixpkgs.useGlobalPackages = true;
|
||||||
|
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
|
||||||
|
luaLoader.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
5
profiles/base/home-manager/neovim/options.nix
Normal file
5
profiles/base/home-manager/neovim/options.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
colorschemes.catppuccin.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
5
profiles/base/home-manager/neovim/plugins/default.nix
Normal file
5
profiles/base/home-manager/neovim/plugins/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./oil.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
40
profiles/base/home-manager/neovim/plugins/oil.nix
Normal file
40
profiles/base/home-manager/neovim/plugins/oil.nix
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.oil = {
|
||||||
|
enable = true;
|
||||||
|
autoLoad = true;
|
||||||
|
settings = {
|
||||||
|
columns = [
|
||||||
|
"icon"
|
||||||
|
];
|
||||||
|
keymaps = {
|
||||||
|
"<C-r>" = "actions.refresh";
|
||||||
|
"<leader>qq" = "actions.close";
|
||||||
|
};
|
||||||
|
skip_confirm_for_simple_edits = true;
|
||||||
|
constrain_cursor = "editable";
|
||||||
|
default_file_explorer = true;
|
||||||
|
view_options = {
|
||||||
|
show_hidden = true;
|
||||||
|
};
|
||||||
|
win_options = {
|
||||||
|
concealcursor = "ncv";
|
||||||
|
conceallevel = 3;
|
||||||
|
cursorcolumn = false;
|
||||||
|
foldcolumn = "0";
|
||||||
|
list = false;
|
||||||
|
signcolumn = "no";
|
||||||
|
spell = false;
|
||||||
|
wrap = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.nixvim.keymaps = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>e";
|
||||||
|
action = ":Oil<CR>";
|
||||||
|
options.desc = "File browser";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,6 +4,9 @@
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin-latte";
|
theme = "catppuccin-latte";
|
||||||
|
default_layout = "compact";
|
||||||
|
show_startup_tips = false;
|
||||||
|
show_release_notes = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ with pkgs;
|
|||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
jjui
|
jjui
|
||||||
nerd-fonts.fira-code
|
|
||||||
jq
|
jq
|
||||||
killall
|
killall
|
||||||
libfido2
|
libfido2
|
||||||
neovim
|
neovim
|
||||||
|
nerd-fonts.iosevka
|
||||||
nixfmt
|
nixfmt
|
||||||
nodejs_24
|
nodejs_24
|
||||||
opencode
|
opencode
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
window-padding-x = 8;
|
window-padding-x = 8;
|
||||||
window-padding-y = 2;
|
window-padding-y = 2;
|
||||||
window-padding-balance = true;
|
window-padding-balance = true;
|
||||||
font-family = "FiraCode Nerd Font";
|
font-family = "Iosevka Nerd Font";
|
||||||
font-size = 15.5;
|
font-size = 15.5;
|
||||||
font-feature = [
|
font-feature = [
|
||||||
"-calt"
|
"-calt"
|
||||||
|
|||||||
Reference in New Issue
Block a user