mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
This represents a major rearchitecture for nixvim, so I'm leaving this up to track the progress for now, and to serve as a reference for any breaking changes during transition. The main change is, of course, being able to use nixvim standalone. To do this, you should use the new build function, which takes in two arguments: the system architecture (e.g. x86_64-linux) and the configuration. For the new configuration, do not use the programs.nixvim. prefix. For module development, the main change is that you should no longer prefix your modules with programs.nixvim..
22 lines
453 B
Nix
22 lines
453 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.comment-nvim;
|
|
defs = import ../plugin-defs.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
options = {
|
|
plugins.intellitab = {
|
|
enable = mkEnableOption "intellitab.nvim";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [ defs.intellitab-nvim ];
|
|
|
|
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
|
plugins.treesitter = {
|
|
indent = true;
|
|
};
|
|
};
|
|
}
|