diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-16 10:24:20 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-16 10:24:20 -0400 |
| commit | 33707edbeb8a7227e529e51436b9545cd86d8c2f (patch) | |
| tree | a03b12cb9ebaf5385632879487236ef4ab01aaae /pkgs/custom-neovim/default.nix | |
| parent | f93f626d04970ab6f3db7744e65ab70d88ecb12e (diff) | |
neovim: fixed markdown, zoxide, completion, and auto-session
Diffstat (limited to 'pkgs/custom-neovim/default.nix')
| -rw-r--r-- | pkgs/custom-neovim/default.nix | 134 |
1 files changed, 76 insertions, 58 deletions
diff --git a/pkgs/custom-neovim/default.nix b/pkgs/custom-neovim/default.nix index abaf554..fc99a7d 100644 --- a/pkgs/custom-neovim/default.nix +++ b/pkgs/custom-neovim/default.nix @@ -1,70 +1,88 @@ { pkgs, inputs, -}: -inputs.mnw.lib.wrap pkgs { - neovim = pkgs.neovim-unwrapped; - plugins = with pkgs.vimPlugins; { - dev.config = { - pure = ./config; - impure = "/home/culsans/Sync/setup/pkgs/custom-neovim/config"; +}: let + # Get the markdown table mode plugin + markdown-table-mode-nvim-git = pkgs.vimUtils.buildVimPlugin { + name = "markdown-table-mode.nvim"; + version = "git"; + src = pkgs.fetchFromGitHub { + owner = "Kicamon"; + repo = "markdown-table-mode.nvim"; + rev = "bb1ea9b76c1b29e15e14806fdfbb2319df5c06f1"; + sha256 = "sha256-Pwsp9QQiADvzMjn2jSiQ/MPVCYjVnugKu55gbjvlYDk="; }; - start = [ - # Not lazy loaded. + }; +in + inputs.mnw.lib.wrap pkgs { + neovim = pkgs.neovim-unwrapped; + plugins = with pkgs.vimPlugins; { + dev.config = { + pure = ./config; + impure = "/home/culsans/Sync/setup/pkgs/custom-neovim/config"; + }; + start = [ + lz-n # Lazy loader + ]; + opt = [ + # Can be lazy loaded. - lz-n # Lazy loader - ]; - opt = [ - # Can be lazy loaded. + # UI Plugins + nvim-treesitter.withAllGrammars # All treesitter grammars + mini-clue + mini-pick + mini-files + mini-extra + mini-icons + plenary-nvim # UI library + actions-preview-nvim # Preview lsp actions - # UI Plugins - nvim-treesitter.withAllGrammars # All treesitter grammars - mini-clue - mini-pick - mini-files - mini-extra - plenary-nvim # UI library - markview-nvim # Previews for markdown and more - actions-preview-nvim # Preview lsp actions + # Completion Plugins + blink-cmp + luasnip + friendly-snippets - # Completion Plugins - blink-cmp - luasnip - friendly-snippets + # Utility Plugins + mini-pairs + comment-nvim + auto-session + zoxide-vim + vim-nix # Indentation for nix files + calendar-vim - # Utility Plugins - mini-pairs - comment-nvim - auto-session - zoxide-vim - vim-nix # Indentation for nix files - calendar-vim + # Git Plugins + mini-git + mini-diff + neogit - # Git Plugins - mini-git - mini-diff - neogit + # Markdown Plugns + render-markdown-nvim + markdown-nvim + markdown-table-mode-nvim-git - # Misc Plugins - presence-nvim # Discord RPC for nvim. - cellular-automaton-nvim # Fun useless plugin. + # Misc Plugins + presence-nvim # Discord RPC for nvim. + cellular-automaton-nvim # Fun useless plugin. - # Colorschemes - mini-base16 - nightfox-nvim - vim-gruvbox8 - ]; - }; - luaFiles = [./config/init.lua]; - extraBinPath = with pkgs; [ - # LSP Servers - lua-language-server - marksman - nixd + # Colorschemes + mini-base16 + nightfox-nvim + vim-gruvbox8 + ]; + }; + luaFiles = [./config/init.lua]; + extraBinPath = with pkgs; [ + # LSP Servers + lua-language-server + marksman + nixd + + # Extra Utils + ripgrep + gcc + fd - # Extra Utils - ripgrep - gcc - fd - ]; -} + # Misc Dependencies + python312Packages.pylatexenc + ]; + } |
