mirror of
https://github.com/zoriya/flake.git
synced 2026-05-28 17:05:19 +00:00
Add oil
This commit is contained in:
Generated
+17
@@ -292,6 +292,22 @@
|
|||||||
"type": "github"
|
"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": {
|
"neovim-nightly": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
@@ -451,6 +467,7 @@
|
|||||||
"ghostty": "ghostty",
|
"ghostty": "ghostty",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
|
"lz-nvim": "lz-nvim",
|
||||||
"neovim-nightly": "neovim-nightly",
|
"neovim-nightly": "neovim-nightly",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
url = "github:youwen5/zen-browser-flake";
|
url = "github:youwen5/zen-browser-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lz-nvim = {
|
||||||
|
url = "github:zoriya/lz.n";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|||||||
+10
-1
@@ -1,9 +1,16 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
neovim-nightly,
|
neovim-nightly,
|
||||||
|
lz-nvim,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
mkNvim = pkgs.callPackage ./mknvim.nix {inherit pkgs;};
|
mkNvim = pkgs.callPackage ./mknvim.nix {inherit pkgs;};
|
||||||
|
|
||||||
|
mkPlugin = src: pname:
|
||||||
|
pkgs.vimUtils.buildVimPlugin {
|
||||||
|
inherit pname src;
|
||||||
|
version = src.lastModifiedDate;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
mkNvim {
|
mkNvim {
|
||||||
withNodeJs = false;
|
withNodeJs = false;
|
||||||
@@ -16,10 +23,12 @@ in
|
|||||||
|
|
||||||
plugins = with pkgs.vimPlugins; {
|
plugins = with pkgs.vimPlugins; {
|
||||||
start = [
|
start = [
|
||||||
lz-n
|
(mkPlugin lz-nvim "lz-n")
|
||||||
catppuccin-nvim
|
catppuccin-nvim
|
||||||
nvim-treesitter.withAllGrammars
|
nvim-treesitter.withAllGrammars
|
||||||
|
oil-nvim
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
|
mini-nvim
|
||||||
];
|
];
|
||||||
opts = [
|
opts = [
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"catppuccin-nvim",
|
"catppuccin-nvim",
|
||||||
-- colorscheme = "catppuccin",
|
colorscheme = "catppuccin",
|
||||||
load = function() end,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
|
load = function() end,
|
||||||
opt = {
|
opt = {
|
||||||
integrations = {
|
integrations = {
|
||||||
telescope = {
|
telescope = {
|
||||||
@@ -14,7 +15,7 @@ return {
|
|||||||
},
|
},
|
||||||
after = function(plug)
|
after = function(plug)
|
||||||
require("catppuccin").setup(plug.opt)
|
require("catppuccin").setup(plug.opt)
|
||||||
vim.cmd.colorscheme "catppuccin"
|
vim.cmd.colorscheme("catppuccin")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"mini.nvim",
|
||||||
|
lazy = false,
|
||||||
|
load = function() end,
|
||||||
|
after = function()
|
||||||
|
require("mini.icons").setup();
|
||||||
|
MiniIcons.mock_nvim_web_devicons()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -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