diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-01 00:45:02 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-01 00:45:02 +0530 |
| commit | 9dc8cc8176be54df0d9ff4e7ef904e619deea3c2 (patch) | |
| tree | 9f03e241cd286c361c6f50a14c2adb60d6615353 /modules/tools/editor/neovim/plugins/default.nix | |
| parent | 5f8027fef5ab482be9275aa310ac22dd1d414159 (diff) | |
| download | home-manager-config-9dc8cc8176be54df0d9ff4e7ef904e619deea3c2.tar.gz home-manager-config-9dc8cc8176be54df0d9ff4e7ef904e619deea3c2.zip | |
Added a minimal and full configuration settings to neovim.
Added language server support for the full neovim configuration.
Diffstat (limited to 'modules/tools/editor/neovim/plugins/default.nix')
| -rw-r--r-- | modules/tools/editor/neovim/plugins/default.nix | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/modules/tools/editor/neovim/plugins/default.nix b/modules/tools/editor/neovim/plugins/default.nix index ace5379..6e4f844 100644 --- a/modules/tools/editor/neovim/plugins/default.nix +++ b/modules/tools/editor/neovim/plugins/default.nix @@ -1,11 +1,27 @@ -{ config }: +{ config, pkgs, lib }: -'' -${builtins.readFile ./comment.lua} -${builtins.readFile ./lualine.lua} -${import ./treesitter.nix { inherit config; }} -${builtins.readFile (config.scheme { - template = builtins.readFile ./base16.mustache.lua; -})} -${builtins.readFile ./nvim-tree.lua} -'' +{ + configuration = import ./config { inherit config; }; + + list = with pkgs.vimPlugins; lib.mkMerge [ + [ + comment-nvim + lualine-nvim + nvim-treesitter + nvim-web-devicons + nvim-tree-lua + (base16-vim.overrideAttrs (old: { + patchPhase = "ln -s ${config.scheme base16-vim} colors/base16-scheme.vim"; + })) + ] + (if config.tools.editor.neovim.configuration == "full" then + [ + nvim-lspconfig + ] + else null) + ]; + + requirements = with pkgs; [ + gcc # for treesitter + ]; +} |
