dotfiles/modules/programs/nvim/default.nix

67 lines
1.5 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, inputs, ... }:
2022-07-15 13:11:54 +02:00
let
2024-06-17 09:59:39 +02:00
inherit (lib) mkEnableOption mkIf readFile;
2024-06-30 18:46:10 +02:00
cfg = config.my.programs.nvim;
2022-07-15 13:11:54 +02:00
in
{
imports = lib.my.listModulesRec ./new_plugins;
2023-06-10 21:52:57 +02:00
2023-09-17 09:35:10 +02:00
options.my.programs.nvim.enable = mkEnableOption "nvim";
2022-07-15 13:11:54 +02:00
config = mkIf cfg.enable {
2024-02-12 10:10:32 +01:00
home-manager.users.moritz = {
2024-02-10 18:22:09 +01:00
xdg.configFile."nvim/snippets" = {
recursive = true;
source = ./plugins/snippets;
};
2024-06-27 10:12:38 +02:00
home.packages = with pkgs; [
2024-06-30 18:46:10 +02:00
xdotool # for vimtex
2024-06-27 10:12:38 +02:00
];
2024-08-31 10:14:44 +02:00
# programs.neovim = {
# extraPackages = with pkgs;
# [
# alejandra
# checkmake
# codespell
# deadnix
# dotenv-linter
# fish
# jq
# nil
# nixd
# nixpkgs-fmt
# nodePackages.bash-language-server
# python3Packages.python-lsp-server
# shellcheck
# shfmt
# stable.yamlfix
# statix
# taplo
# yamllint
# ];
# };
programs.nixvim = {
enable = true;
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;
vimAlias = true;
extraConfigLuaPre = readFile ./options.lua;
performance = {
byteCompileLua = {
2024-09-01 22:05:20 +02:00
enable = true;
configs = true;
initLua = true;
nvimRuntime = true;
plugins = true;
2024-08-31 10:14:44 +02:00
};
combinePlugins.enable = true;
};
};
2022-07-15 13:11:54 +02:00
};
};
}