This commit is contained in:
jmarkin 2025-10-13 22:59:51 +03:00
parent ebb0cc7177
commit 3f3b5e3733
7 changed files with 47 additions and 20 deletions

View file

@ -383,11 +383,11 @@
"namu-nvim": {
"flake": false,
"locked": {
"lastModified": 1751647668,
"narHash": "sha256-zMRjYesRVagguR521e6MgjYcEOPEVyb7UG8NzKOTSw0=",
"lastModified": 1760207972,
"narHash": "sha256-FvqEGJHpLOcRWilFGpWT3rbORMgYs0mIE1OAU1jxa3s=",
"owner": "bassamsdata",
"repo": "namu.nvim",
"rev": "6759df3cddb1d6d11442b953f8b63e64350229f3",
"rev": "89d7a77821402439762109fd9715114003b7e6df",
"type": "github"
},
"original": {
@ -411,11 +411,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1760168241,
"narHash": "sha256-87aML9i/zVm5WSCEx59PUpCrpkLbXEqcLEFPNn5+2iE=",
"lastModified": 1760313895,
"narHash": "sha256-39JFRb006AOsIcOq+03H3y6YcGyaphk1CW5DRi14cOE=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "d5ef90cf4577df3e3daef7e070d200cca64c889f",
"rev": "7ff73a295b0065bde2f8b43b31558136ca77bd98",
"type": "github"
},
"original": {
@ -427,11 +427,11 @@
"neovim-src": {
"flake": false,
"locked": {
"lastModified": 1760105690,
"narHash": "sha256-ZII7EvSnJueiV/a595uOsIdbWcXVWhO5pCvvJp2/mco=",
"lastModified": 1760312166,
"narHash": "sha256-RnB+oJcP37YT9pjr1osUQtJc+1qcVyaaeSbiSyXwm1Y=",
"owner": "neovim",
"repo": "neovim",
"rev": "fafc329bbd1e15f9ab595568e8cd8b10295113dd",
"rev": "72b0bfa1fb7e897e5126aabae718a5480f466b9e",
"type": "github"
},
"original": {
@ -504,11 +504,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1760038930,
"narHash": "sha256-Oncbh0UmHjSlxO7ErQDM3KM0A5/Znfofj2BSzlHLeVw=",
"lastModified": 1760284886,
"narHash": "sha256-TK9Kr0BYBQ/1P5kAsnNQhmWWKgmZXwUQr4ZMjCzWf2c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0b4defa2584313f3b781240b29d61f6f9f7e0df3",
"rev": "cf3f5c4def3c7b5f1fc012b3d839575dbe552d43",
"type": "github"
},
"original": {
@ -534,6 +534,22 @@
"type": "github"
}
},
"oil-nvim": {
"flake": false,
"locked": {
"lastModified": 1758988107,
"narHash": "sha256-mbcrKgXodoNKD3nluJG6645iEa7aUVJqUTAvbVsealU=",
"owner": "stevearc",
"repo": "oil.nvim",
"rev": "919e155fdf38e9148cdb5304faaaf53c20d703ea",
"type": "github"
},
"original": {
"owner": "stevearc",
"repo": "oil.nvim",
"type": "github"
}
},
"root": {
"inputs": {
"beacon-nvim": "beacon-nvim",
@ -549,6 +565,7 @@
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_2",
"nvim-yati": "nvim-yati",
"oil-nvim": "oil-nvim",
"stay-in-place-nvim": "stay-in-place-nvim",
"whatthejump-nvim": "whatthejump-nvim",
"yaml-nvim": "yaml-nvim"

View file

@ -17,6 +17,10 @@
# Add bleeding-edge plugins here.
# They can be updated with `nix flake update` (make sure to commit the generated flake.lock)
oil-nvim = {
url = "github:stevearc/oil.nvim";
flake = false;
};
hlargs-nvim = {
url = "github:m-demare/hlargs.nvim";
flake = false;

View file

@ -132,7 +132,12 @@ with final.pkgs.lib; let
}
{
plugin = oil-nvim;
plugin = indent-o-matic;
optional = false;
}
{
plugin = (mkNvimPlugin inputs.oil-nvim "oil.nvim");
optional = false;
config = /*vim*/''

View file

@ -6,7 +6,7 @@ vim.g.did_load_filemanager_plugin = true
local oil = require("oil")
local funcs = require("funcs")
vim.keymap.set("n", "<space>f", "<cmd>Oil<cr>", { noremap = true, desc = "Netrw: open" })
vim.keymap.set("n", "<space>f", "<cmd>Oil<cr>", { noremap = true, desc = "FileManager" })
local detail = false
@ -56,8 +56,8 @@ oil.setup({
["_"] = { "actions.open_cwd", mode = "n" },
["<tab>"] = "actions.select",
["<s-tab>"] = { "actions.parent", mode = "n" },
["~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
["s"] = { "actions.change_sort", mode = "n" },
["cd"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
["gs"] = { "actions.change_sort", mode = "n" },
["gh"] = { "actions.toggle_hidden", mode = "n" },
["gd"] = {
desc = "Toggle file detail view",
@ -101,7 +101,5 @@ oil.setup({
return false
end,
-- Window-local options to use for preview window buffers
win_options = {},
},
})

View file

@ -40,8 +40,9 @@ for _, lang in ipairs({
end
vim.keymap.set("", "gqb", function()
local lf = require("largefiles")
local buf = vim.api.nvim_get_current_buf()
if require("largefiles").is_large_file(buf, true) then
if lf.is_large_file(buf, false) == lf.FILE_TYPE.READ_ONLY then
vim.notify_once("Large buf can't format", vim.log.levels.WARN)
return
end

View file

@ -99,3 +99,5 @@ vim.keymap.set(
end)(),
{ desc = "Toggle autoresize height width buffers of window" }
)

View file

@ -66,7 +66,7 @@ _G.bt = function()
end
vim.print = _G.dd -- Override print to use snacks for `:=` command
Snacks.toggle.option("hlsearch", { name = "HLSearch" }):map("<leader>th")
Snacks.toggle.option("hlsearch", { name = "HLSearch", global = true }):map("<leader>th")
Snacks.toggle.option("spell", { name = "Spelling" }):map("<leader>ts")
Snacks.toggle.option("wrap", { name = "Wrap" }):map("<leader>tw")
Snacks.toggle