Merge pull request #1023 from abhirath-a/main

utility/undotree: init
This commit is contained in:
raf 2025-07-21 21:59:29 +03:00 committed by GitHub
commit 83fd70a937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 42 additions and 2 deletions

View file

@ -43,7 +43,7 @@ isMaximal: {
# This section does not include a comprehensive list of available language modules.
# To list all available language module options, please visit the nvf manual.
languages = {
enableFormat = true; #
enableFormat = true;
enableTreesitter = true;
enableExtraDiagnostics = true;
@ -194,7 +194,7 @@ isMaximal: {
leetcode-nvim.enable = isMaximal;
multicursors.enable = isMaximal;
smart-splits.enable = isMaximal;
undotree.enable = isMaximal;
motion = {
hop.enable = true;
leap.enable = true;

View file

@ -37,6 +37,7 @@
[snacks.nvim]: https://github.com/folke/snacks.nvim
[oil.nvim]: https://github.com/stevearc/oil.nvim
[hunk.nvim]: https://github.com/julienvincent/hunk.nvim
[undotree]: https://github.com/mbbill/undotree
- Add [typst-preview.nvim] under
`languages.typst.extensions.typst-preview-nvim`.

View file

@ -26,5 +26,6 @@
./wakatime
./yanky-nvim
./yazi-nvim
./undotree
];
}

View file

@ -0,0 +1,12 @@
{
vim.lazy.plugins.undotree = {
package = "undotree";
cmd = [
"UndotreeToggle"
"UndotreeShow"
"UndotreeHide"
"UndotreePersistUndo"
"UndotreeFocus"
];
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./undotree.nix
./config.nix
];
}

View file

@ -0,0 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.utility.undotree = {
enable = mkEnableOption "undo history visualizer for Vim [undotree]";
};
}

View file

@ -2497,6 +2497,19 @@
"url": "https://github.com/chomosuke/typst-preview.nvim/archive/dea4525d5420b7c32eebda7de15a6beb9d6574fa.tar.gz",
"hash": "0y658l2ibq0x4cwa4rl3lab7aw4ba68xcrdnxp81p2rsk0d60qq4"
},
"undotree": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "mbbill",
"repo": "undotree"
},
"branch": "master",
"submodules": false,
"revision": "28f2f54a34baff90ea6f4a735ef1813ad875c743",
"url": "https://github.com/mbbill/undotree/archive/28f2f54a34baff90ea6f4a735ef1813ad875c743.tar.gz",
"hash": "0k9qfp64rbwy1lc62x0vkwfl3qlx8633lfbhqxkf64yqwi81ysp5"
},
"vim-dirtytalk": {
"type": "Git",
"repository": {