mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
28 lines
608 B
Nix
28 lines
608 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.intellitab;
|
|
defs = import ../plugin-defs.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
options = {
|
|
plugins.intellitab = {
|
|
enable = mkEnableOption "intellitab.nvim";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = defs.intellitab-nvim;
|
|
description = "Plugin to use for intellitab.nvim";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [ cfg.package ];
|
|
|
|
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
|
plugins.treesitter = {
|
|
indent = true;
|
|
};
|
|
};
|
|
}
|