mirror of
https://github.com/zoriya/flake.git
synced 2026-05-14 12:06:26 +00:00
Add oil
This commit is contained in:
17
flake.lock
generated
17
flake.lock
generated
@@ -292,6 +292,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"lz-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1735151625,
|
||||
"narHash": "sha256-XROyv0DgH+1ZWA7Z+OdNd41ufqtl8PoAfwZtSjPFem0=",
|
||||
"owner": "zoriya",
|
||||
"repo": "lz.n",
|
||||
"rev": "e9ee565439706d86b4dd63e20aef1fc231e0570b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "zoriya",
|
||||
"repo": "lz.n",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"neovim-nightly": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
@@ -451,6 +467,7 @@
|
||||
"ghostty": "ghostty",
|
||||
"home-manager": "home-manager",
|
||||
"impermanence": "impermanence",
|
||||
"lz-nvim": "lz-nvim",
|
||||
"neovim-nightly": "neovim-nightly",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nix-index-database": "nix-index-database",
|
||||
|
||||
@@ -44,6 +44,11 @@
|
||||
url = "github:youwen5/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
lz-nvim = {
|
||||
url = "github:zoriya/lz.n";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
{
|
||||
pkgs,
|
||||
neovim-nightly,
|
||||
lz-nvim,
|
||||
...
|
||||
}: let
|
||||
mkNvim = pkgs.callPackage ./mknvim.nix {inherit pkgs;};
|
||||
|
||||
mkPlugin = src: pname:
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
inherit pname src;
|
||||
version = src.lastModifiedDate;
|
||||
};
|
||||
in
|
||||
mkNvim {
|
||||
withNodeJs = false;
|
||||
@@ -16,10 +23,12 @@ in
|
||||
|
||||
plugins = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
lz-n
|
||||
(mkPlugin lz-nvim "lz-n")
|
||||
catppuccin-nvim
|
||||
nvim-treesitter.withAllGrammars
|
||||
oil-nvim
|
||||
plenary-nvim
|
||||
mini-nvim
|
||||
];
|
||||
opts = [
|
||||
telescope-nvim
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
return {
|
||||
{
|
||||
"catppuccin-nvim",
|
||||
-- colorscheme = "catppuccin",
|
||||
load = function() end,
|
||||
colorscheme = "catppuccin",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
load = function() end,
|
||||
opt = {
|
||||
integrations = {
|
||||
telescope = {
|
||||
@@ -14,7 +15,7 @@ return {
|
||||
},
|
||||
after = function(plug)
|
||||
require("catppuccin").setup(plug.opt)
|
||||
vim.cmd.colorscheme "catppuccin"
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
11
nvim/lua/plugins/mini.lua
Normal file
11
nvim/lua/plugins/mini.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
{
|
||||
"mini.nvim",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
after = function()
|
||||
require("mini.icons").setup();
|
||||
MiniIcons.mock_nvim_web_devicons()
|
||||
end,
|
||||
},
|
||||
}
|
||||
23
nvim/lua/plugins/oil.lua
Normal file
23
nvim/lua/plugins/oil.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
{
|
||||
"oil.nvim",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
keys = {
|
||||
{ "-", "<CMD>Oil<CR>", desc = "Open parent directory" },
|
||||
{ "<BS>", "<CMD>Oil<CR>", desc = "Open parent directory" },
|
||||
},
|
||||
opts = {
|
||||
skip_confirm_for_simple_edits = true,
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
keymaps = {
|
||||
["<BS>"] = "actions.parent",
|
||||
},
|
||||
},
|
||||
after = function(plug)
|
||||
require("oil").setup(plug.opts)
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user