nvim
This commit is contained in:
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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user