mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
intellitab.nvim: init plugin
This commit is contained in:
parent
15ca5efd92
commit
88ff6d6fd1
2 changed files with 28 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
./utils/telescope.nix
|
||||
./utils/nvim-autopairs.nix
|
||||
./utils/barbar.nix
|
||||
./utils/intellitab.nix
|
||||
|
||||
./languages/treesitter.nix
|
||||
./languages/nix.nix
|
||||
|
|
27
plugins/utils/intellitab.nix
Normal file
27
plugins/utils/intellitab.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue