diff --git a/configuration.nix b/configuration.nix index 424d7173..6f26f040 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,7 +15,6 @@ isMaximal: { spellcheck = { enable = true; - programmingWordlist.enable = isMaximal; }; lsp = { @@ -163,7 +162,6 @@ isMaximal: { enable = true; gitsigns.enable = true; gitsigns.codeActions.enable = false; # throws an annoying debug message - neogit.enable = isMaximal; }; minimap = { diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index a03ab9fe..3a8bbc3b 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -24,10 +24,6 @@ module interface. You may set [](#opt-vim.clipboard.registers) appropriately to configure Neovim to use the system clipboard. -- Changed which-key group used for gitsigns from `g` to `h` to - align with the "hunks" themed mapping and avoid conflict with the new [neogit] - group. - [NotAShelf](https://github.com/notashelf): [typst-preview.nvim]: https://github.com/chomosuke/typst-preview.nvim @@ -437,11 +433,10 @@ [solarized.nvim]: https://github.com/maxmx03/solarized.nvim [smart-splits.nvim]: https://github.com/mrjones2014/smart-splits.nvim -[neogit]: https://github.com/NeogitOrg/neogit - Add [solarized.nvim] theme with support for multiple variants + - Add [smart-splits.nvim] for navigating between Neovim windows and terminal multiplexer panes. Available at `vim.utility.smart-splits`. -- Restore vim-dirtytalk plugin and fix ordering with spellcheck in generated config. + - Fix lualine separator options -- Add [neogit], an interactive and powerful Git interface for Neovim, inspired by Magit diff --git a/modules/modules.nix b/modules/modules.nix index 1eca042a..97bfa211 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -38,7 +38,7 @@ "runner" "session" "snippets" - "spellcheck" + # "spellcheck" # FIXME: see neovim/init/spellcheck.nix "statusline" "tabline" "terminal" diff --git a/modules/neovim/init/spellcheck.nix b/modules/neovim/init/spellcheck.nix index 5c593a65..fb0f86ea 100644 --- a/modules/neovim/init/spellcheck.nix +++ b/modules/neovim/init/spellcheck.nix @@ -94,8 +94,6 @@ in { Enabling this option will unconditionally set {option}`vim.spellcheck.enable` to true as vim-dirtytalk depends on spellchecking having been set up. - - Run {command}`:DirtytalkUpdate` on first use to download the spellfile. ::: ''; }; diff --git a/modules/plugins/git/default.nix b/modules/plugins/git/default.nix index 5b30b74a..06c80f35 100644 --- a/modules/plugins/git/default.nix +++ b/modules/plugins/git/default.nix @@ -6,7 +6,6 @@ in { ./vim-fugitive ./git-conflict ./gitlinker-nvim - ./neogit ]; options.vim.git = { diff --git a/modules/plugins/git/gitsigns/config.nix b/modules/plugins/git/gitsigns/config.nix index e89eebcf..f5d9f910 100644 --- a/modules/plugins/git/gitsigns/config.nix +++ b/modules/plugins/git/gitsigns/config.nix @@ -69,7 +69,7 @@ in { }; binds.whichKey.register = pushDownDefault { - "h" = "+Gitsigns"; + "g" = "+Gitsigns"; }; pluginRC.gitsigns = entryAnywhere '' diff --git a/modules/plugins/git/neogit/config.nix b/modules/plugins/git/neogit/config.nix deleted file mode 100644 index 20928857..00000000 --- a/modules/plugins/git/neogit/config.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - options, - config, - lib, - ... -}: let - inherit (lib.modules) mkIf; - inherit (lib.nvim.binds) pushDownDefault mkKeymap; - - cfg = config.vim.git.neogit; - - keys = cfg.mappings; - inherit (options.vim.git.neogit) mappings; -in { - config = mkIf cfg.enable { - vim = { - startPlugins = ["plenary-nvim"]; - - lazy.plugins.neogit = { - package = "neogit"; - setupModule = "neogit"; - inherit (cfg) setupOpts; - - cmd = ["Neogit"]; - - keys = [ - (mkKeymap "n" keys.open "Neogit" {desc = mappings.open.description;}) - (mkKeymap "n" keys.commit "Neogit commit" {desc = mappings.commit.description;}) - (mkKeymap "n" keys.pull "Neogit pull" {desc = mappings.pull.description;}) - (mkKeymap "n" keys.push "Neogit push" {desc = mappings.push.description;}) - ]; - }; - - binds.whichKey.register = pushDownDefault { - "g" = "+Git"; - }; - }; - }; -} diff --git a/modules/plugins/git/neogit/default.nix b/modules/plugins/git/neogit/default.nix deleted file mode 100644 index d3f82759..00000000 --- a/modules/plugins/git/neogit/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - imports = [ - ./config.nix - ./neogit.nix - ]; -} diff --git a/modules/plugins/git/neogit/neogit.nix b/modules/plugins/git/neogit/neogit.nix deleted file mode 100644 index fa988a32..00000000 --- a/modules/plugins/git/neogit/neogit.nix +++ /dev/null @@ -1,17 +0,0 @@ -{lib, ...}: let - inherit (lib.options) mkEnableOption; - inherit (lib.nvim.binds) mkMappingOption; - inherit (lib.nvim.types) mkPluginSetupOption; -in { - options.vim.git.neogit = { - enable = mkEnableOption "An Interactive and powerful Git interface [Neogit]"; - setupOpts = mkPluginSetupOption "neogit" {}; - - mappings = { - open = mkMappingOption "Git Status [Neogit]" "gs"; - commit = mkMappingOption "Git Commit [Neogit]" "gc"; - pull = mkMappingOption "Git pull [Neogit]" "gp"; - push = mkMappingOption "Git push [Neogit]" "gP"; - }; - }; -} diff --git a/modules/plugins/spellcheck/vim-dirtytalk/config.nix b/modules/plugins/spellcheck/vim-dirtytalk/config.nix index 7fd32d61..51ccfb81 100644 --- a/modules/plugins/spellcheck/vim-dirtytalk/config.nix +++ b/modules/plugins/spellcheck/vim-dirtytalk/config.nix @@ -17,7 +17,7 @@ in { # like to append programming to spelllangs as soon as # possible while the plugin is enabled and the state # directory can be found. - luaConfigRC.vim-dirtytalk = entryAfter ["spellcheck"] '' + pluginRC.vim-dirtytalk = entryAfter ["spellcheck"] '' -- If Neovim can find (or access) the state directory -- then append "programming" wordlist from vim-dirtytalk -- to spelllang table. If path cannot be found, display diff --git a/npins/sources.json b/npins/sources.json index 6b51ae44..455e1bd6 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -1530,22 +1530,6 @@ "url": "https://github.com/IogaMaster/neocord/archive/2ebf3792a8100376bb65fd66d5dbf60f50af7529.tar.gz", "hash": "1ycx26ppfb5djxji1mwamr7ra29z8sm0fs9a6hhwn0l69x06x353" }, - "neogit": { - "type": "GitRelease", - "repository": { - "type": "GitHub", - "owner": "NeogitOrg", - "repo": "neogit" - }, - "pre_releases": false, - "version_upper_bound": null, - "release_prefix": null, - "submodules": false, - "version": "v2.0.0", - "revision": "7f97dbfc5af3b898c6660d927c23e3a96a5bd069", - "url": "https://api.github.com/repos/NeogitOrg/neogit/tarball/v2.0.0", - "hash": "0nyv64ai3765if7bdfyx01a0xmsmhm8cjvxyvh2s40bzvkx8xy17" - }, "neorg": { "type": "Git", "repository": {