From 426bca10eb358223e3d604752084357e764bfd4b Mon Sep 17 00:00:00 2001 From: dish Date: Wed, 14 Jan 2026 21:57:58 -0500 Subject: [PATCH] [dishvim] add minvim --- neovim/default.nix | 7 +++++++ neovim/minvim.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 neovim/minvim.nix diff --git a/neovim/default.nix b/neovim/default.nix index 4680ec8a..751c270f 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -14,6 +14,13 @@ ./dishvim.nix ]; }).neovim; + minvim = + (inputs.nvf.lib.neovimConfiguration { + inherit pkgs; + modules = [ + ./minvim.nix + ]; + }).neovim; }; }; } diff --git a/neovim/minvim.nix b/neovim/minvim.nix new file mode 100644 index 00000000..9d7a85e7 --- /dev/null +++ b/neovim/minvim.nix @@ -0,0 +1,43 @@ +{ pkgs, ... }: +{ + imports = [ + # keep-sorted start + ./basics.nix + ./git.nix + ./lualine.nix + ./misc/cursor-restore.nix + ./plugins/dial-nvim.nix + ./plugins/hlargs-nvim.nix + ./plugins/trouble.nix + # keep-sorted end + ]; + config.vim = { + treesitter.enable = true; + binds.whichKey = { + enable = true; + register = { + "l" = "+LSP"; + }; + }; + lsp = { + enable = true; + formatOnSave = true; + inlayHints.enable = true; + mappings.renameSymbol = "lr"; + mappings.toggleFormatOnSave = "uf"; + }; + # Languages + languages = { + enableFormat = true; + enableTreesitter = true; + enableExtraDiagnostics = true; + just.enable = true; + just.lsp.enable = false; + nix = { + enable = true; + format.type = [ "nixfmt" ]; + lsp.enable = false; + }; + }; + }; +} -- 2.51.2