mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 14:45:58 +01:00
629 lines
13 KiB
Nix
629 lines
13 KiB
Nix
{
|
|
description = "A neovim flake with a modular configuration";
|
|
outputs = {
|
|
nixpkgs,
|
|
flake-parts,
|
|
self,
|
|
...
|
|
} @ inputs:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
# provide overridable systems
|
|
# https://github.com/nix-systems/nix-systems
|
|
systems = import inputs.systems;
|
|
|
|
imports = [
|
|
# add lib to module args
|
|
{_module.args = {inherit (nixpkgs) lib;};}
|
|
./flake/apps.nix
|
|
./flake/legacyPackages.nix
|
|
./flake/overlays.nix
|
|
./flake/packages.nix
|
|
];
|
|
|
|
flake = {
|
|
lib = {
|
|
inherit (import ./lib/stdlib-extended.nix nixpkgs.lib inputs) nvim;
|
|
inherit (import ./configuration.nix inputs) neovimConfiguration;
|
|
};
|
|
|
|
homeManagerModules = {
|
|
neovim-flake =
|
|
nixpkgs.lib.warn ''
|
|
homeManagerModules.neovim-flake has been deprecated.
|
|
Plese use the homeManagereModules.nvf instead
|
|
''
|
|
self.homeManagerModules.nvf;
|
|
|
|
nvf = {
|
|
imports = [(import ./flake/modules/home-manager.nix self.packages inputs)];
|
|
};
|
|
|
|
default = self.homeManagerModules.nvf;
|
|
};
|
|
|
|
nixosModules = {
|
|
neovim-flake =
|
|
nixpkgs.lib.warn ''
|
|
nixosModules.neovim-flake has been deprecated.
|
|
Please use the nixosModules.nvf instead
|
|
''
|
|
self.nixosModules.neovim-flake;
|
|
|
|
nvf = {
|
|
imports = [(import ./flake/modules/nixos.nix self.packages inputs)];
|
|
};
|
|
|
|
default = self.nixosModules.nvf;
|
|
};
|
|
};
|
|
|
|
perSystem = {
|
|
self',
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
formatter = pkgs.alejandra;
|
|
devShells = {
|
|
default = self'.devShells.lsp;
|
|
nvim-nix = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];};
|
|
lsp = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [nil statix deadnix alejandra];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
# Flake inputs
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
# For generating documentation website
|
|
nmd = {
|
|
url = "sourcehut:~rycee/nmd";
|
|
flake = false;
|
|
};
|
|
|
|
# TODO: get zig from the zig overlay instead of nixpkgs
|
|
zig.url = "github:mitchellh/zig-overlay";
|
|
|
|
# Langauge server (use master instead of nixpkgs)
|
|
rnix-lsp.url = "github:nix-community/rnix-lsp";
|
|
nil = {
|
|
url = "github:oxalica/nil";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
};
|
|
|
|
### Plugins
|
|
# Tidal cycles
|
|
tidalcycles = {
|
|
url = "github:mitchmindtree/tidalcycles.nix";
|
|
inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal";
|
|
};
|
|
|
|
# LSP plugins
|
|
plugin-nvim-lspconfig = {
|
|
url = "github:neovim/nvim-lspconfig";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-lspsaga = {
|
|
url = "github:tami5/lspsaga.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-lspkind = {
|
|
url = "github:onsails/lspkind-nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-trouble = {
|
|
url = "github:folke/trouble.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-treesitter-context = {
|
|
url = "github:nvim-treesitter/nvim-treesitter-context";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-lightbulb = {
|
|
url = "github:kosayoda/nvim-lightbulb";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-code-action-menu = {
|
|
url = "github:weilbith/nvim-code-action-menu";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-lsp-signature = {
|
|
url = "github:ray-x/lsp_signature.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-lsp-lines = {
|
|
url = "sourcehut:~whynothugo/lsp_lines.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-none-ls = {
|
|
# https://github.com/nvimtools/none-ls.nvim/issues/58
|
|
url = "github:nvimtools/none-ls.nvim/bb680d752cec37949faca7a1f509e2fe67ab418a";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-docs-view = {
|
|
url = "github:amrbashir/nvim-docs-view";
|
|
flake = false;
|
|
};
|
|
|
|
# language support
|
|
plugin-sqls-nvim = {
|
|
url = "github:nanotee/sqls.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-rust-tools = {
|
|
url = "github:simrat39/rust-tools.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-flutter-tools = {
|
|
url = "github:akinsho/flutter-tools.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-neodev-nvim = {
|
|
url = "github:folke/neodev.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-elixir-ls = {
|
|
url = "github:elixir-lsp/elixir-ls";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-elixir-tools = {
|
|
url = "github:elixir-tools/elixir-tools.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-glow-nvim = {
|
|
url = "github:ellisonleao/glow.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-image-nvim = {
|
|
url = "github:3rd/image.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Copying/Registers
|
|
plugin-registers = {
|
|
url = "github:tversteeg/registers.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-neoclip = {
|
|
url = "github:AckslD/nvim-neoclip.lua";
|
|
flake = false;
|
|
};
|
|
|
|
# Telescope
|
|
plugin-telescope = {
|
|
url = "github:nvim-telescope/telescope.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Debuggers
|
|
plugin-nvim-dap = {
|
|
url = "github:mfussenegger/nvim-dap";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-dap-ui = {
|
|
url = "github:rcarriga/nvim-dap-ui";
|
|
flake = false;
|
|
};
|
|
|
|
# Filetrees
|
|
plugin-nvim-tree-lua = {
|
|
url = "github:nvim-tree/nvim-tree.lua";
|
|
flake = false;
|
|
};
|
|
|
|
# Tablines
|
|
plugin-nvim-bufferline-lua = {
|
|
url = "github:akinsho/nvim-bufferline.lua";
|
|
flake = false;
|
|
};
|
|
|
|
# Statuslines
|
|
plugin-lualine = {
|
|
url = "github:hoob3rt/lualine.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-cmp = {
|
|
url = "github:hrsh7th/nvim-cmp";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cmp-buffer = {
|
|
url = "github:hrsh7th/cmp-buffer";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cmp-nvim-lsp = {
|
|
url = "github:hrsh7th/cmp-nvim-lsp";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cmp-vsnip = {
|
|
url = "github:hrsh7th/cmp-vsnip";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cmp-path = {
|
|
url = "github:hrsh7th/cmp-path";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cmp-treesitter = {
|
|
url = "github:ray-x/cmp-treesitter";
|
|
flake = false;
|
|
};
|
|
|
|
# snippets
|
|
plugin-vim-vsnip = {
|
|
url = "github:hrsh7th/vim-vsnip";
|
|
flake = false;
|
|
};
|
|
|
|
# Presence
|
|
plugin-neocord = {
|
|
url = "github:IogaMaster/neocord";
|
|
flake = false; # uses flake-utils, avoid the flake
|
|
};
|
|
|
|
# Autopairs
|
|
plugin-nvim-autopairs = {
|
|
url = "github:windwp/nvim-autopairs";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-ts-autotag = {
|
|
url = "github:windwp/nvim-ts-autotag";
|
|
flake = false;
|
|
};
|
|
|
|
# Commenting
|
|
plugin-comment-nvim = {
|
|
url = "github:numToStr/Comment.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-todo-comments = {
|
|
url = "github:folke/todo-comments.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Buffer tools
|
|
plugin-bufdelete-nvim = {
|
|
url = "github:famiu/bufdelete.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Dashboard Utilities
|
|
plugin-dashboard-nvim = {
|
|
url = "github:glepnir/dashboard-nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-alpha-nvim = {
|
|
url = "github:goolord/alpha-nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-vim-startify = {
|
|
url = "github:mhinz/vim-startify";
|
|
flake = false;
|
|
};
|
|
|
|
# Themes
|
|
plugin-tokyonight = {
|
|
url = "github:folke/tokyonight.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-onedark = {
|
|
url = "github:navarasu/onedark.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-catppuccin = {
|
|
url = "github:catppuccin/nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-dracula = {
|
|
url = "github:Mofiqul/dracula.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-oxocarbon = {
|
|
url = "github:nyoom-engineering/oxocarbon.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-gruvbox = {
|
|
url = "github:ellisonleao/gruvbox.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-rose-pine = {
|
|
url = "github:rose-pine/neovim";
|
|
flake = false;
|
|
};
|
|
|
|
# Rust crates
|
|
plugin-crates-nvim = {
|
|
url = "github:Saecki/crates.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Project Management
|
|
plugin-project-nvim = {
|
|
url = "github:ahmedkhalf/project.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Visuals
|
|
plugin-nvim-cursorline = {
|
|
url = "github:yamatsum/nvim-cursorline";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-scrollbar-nvim = {
|
|
url = "github:petertriho/nvim-scrollbar";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cinnamon-nvim = {
|
|
url = "github:declancm/cinnamon.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cellular-automaton = {
|
|
url = "github:Eandrju/cellular-automaton.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-indent-blankline = {
|
|
url = "github:lukas-reineke/indent-blankline.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-web-devicons = {
|
|
url = "github:nvim-tree/nvim-web-devicons";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-gitsigns-nvim = {
|
|
url = "github:lewis6991/gitsigns.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-vim-fugitive = {
|
|
url = "github:tpope/vim-fugitive";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-fidget-nvim = {
|
|
url = "github:j-hui/fidget.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-highlight-undo = {
|
|
url = "github:tzachar/highlight-undo.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Minimap
|
|
plugin-minimap-vim = {
|
|
url = "github:wfxr/minimap.vim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-codewindow-nvim = {
|
|
url = "github:gorbit99/codewindow.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Notifications
|
|
plugin-nvim-notify = {
|
|
url = "github:rcarriga/nvim-notify";
|
|
flake = false;
|
|
};
|
|
|
|
# Utilities
|
|
plugin-ccc = {
|
|
url = "github:uga-rosa/ccc.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-diffview-nvim = {
|
|
url = "github:sindrets/diffview.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-icon-picker-nvim = {
|
|
url = "github:ziontee113/icon-picker.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-which-key = {
|
|
url = "github:folke/which-key.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-cheatsheet-nvim = {
|
|
url = "github:sudormrfbin/cheatsheet.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-gesture-nvim = {
|
|
url = "github:notomo/gesture.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-hop-nvim = {
|
|
url = "github:phaazon/hop.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-leap-nvim = {
|
|
url = "github:ggandor/leap.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-smartcolumn = {
|
|
url = "github:m4xshen/smartcolumn.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-surround = {
|
|
url = "github:kylechui/nvim-surround";
|
|
flake = false;
|
|
};
|
|
|
|
# Note-taking
|
|
plugin-obsidian-nvim = {
|
|
url = "github:epwalsh/obsidian.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-orgmode-nvim = {
|
|
url = "github:nvim-orgmode/orgmode";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-mind-nvim = {
|
|
url = "github:phaazon/mind.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# Spellchecking
|
|
plugin-vim-dirtytalk = {
|
|
url = "github:psliwka/vim-dirtytalk";
|
|
flake = false;
|
|
};
|
|
|
|
# Terminal
|
|
plugin-toggleterm-nvim = {
|
|
url = "github:akinsho/toggleterm.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
# UI
|
|
plugin-nvim-navbuddy = {
|
|
url = "github:SmiteshP/nvim-navbuddy";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-navic = {
|
|
url = "github:SmiteshP/nvim-navic";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-noice-nvim = {
|
|
url = "github:folke/noice.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-modes-nvim = {
|
|
url = "github:mvllow/modes.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-colorizer-lua = {
|
|
url = "github:NvChad/nvim-colorizer.lua";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-vim-illuminate = {
|
|
url = "github:RRethy/vim-illuminate";
|
|
flake = false;
|
|
};
|
|
|
|
# Assistant
|
|
plugin-chatgpt = {
|
|
url = "github:jackMort/ChatGPT.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-copilot-lua = {
|
|
url = "github:zbirenbaum/copilot.lua";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-copilot-cmp = {
|
|
url = "github:zbirenbaum/copilot-cmp";
|
|
flake = false;
|
|
};
|
|
|
|
# Session management
|
|
plugin-nvim-session-manager = {
|
|
url = "github:Shatur/neovim-session-manager";
|
|
flake = false;
|
|
};
|
|
|
|
# Dependencies
|
|
plugin-plenary-nvim = {
|
|
# (required by crates-nvim)
|
|
url = "github:nvim-lua/plenary.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-dressing-nvim = {
|
|
# (required by icon-picker-nvim)
|
|
url = "github:stevearc/dressing.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-vim-markdown = {
|
|
# (required by obsidian-nvim)
|
|
url = "github:preservim/vim-markdown";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-tabular = {
|
|
# (required by vim-markdown)
|
|
url = "github:godlygeek/tabular";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nui-nvim = {
|
|
# (required by noice.nvim)
|
|
url = "github:MunifTanjim/nui.nvim";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-vim-repeat = {
|
|
# (required by leap.nvim)
|
|
url = "github:tpope/vim-repeat";
|
|
flake = false;
|
|
};
|
|
|
|
plugin-nvim-nio = {
|
|
# (required nvim-dap-ui)
|
|
url = "github:nvim-neotest/nvim-nio";
|
|
flake = false;
|
|
};
|
|
};
|
|
}
|