mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
28 lines
583 B
Nix
28 lines
583 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.programs.nixvim.plugins.comment-nvim;
|
||
|
helpers = import ../helpers.nix { inherit lib; };
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
programs.nixvim.plugins.intellitab = {
|
||
|
enable = mkEnableOption "intellitab.nvim";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
programs.nixvim = {
|
||
|
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
||
|
plugins.packer = {
|
||
|
enable = true;
|
||
|
plugins = [ "pta2002/intellitab.nvim" ];
|
||
|
};
|
||
|
|
||
|
plugins.treesitter = {
|
||
|
indent = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|