Skip to content

Commit

Permalink
Add indent-blankline.nvim and mini-indentscope
Browse files Browse the repository at this point in the history
Basically it just highlights tabs, see
lukas-reineke/indent-blankline.nvim#649 (comment)
  • Loading branch information
PerchunPak committed Mar 29, 2024
1 parent 32e1034 commit 6075f89
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion home-manager/nvim/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{pkgs, ...}: {
{
pkgs,
inputs,
...
}: let
nixvimHelpers = inputs.nixvim.lib.x86_64-linux.helpers;
in {
programs.nixvim = {
plugins = {
transparent.enable = true;
Expand Down Expand Up @@ -110,6 +116,18 @@
# cursor location to LINE:COLUMN
section_location = "%2l:%-2v";
};
indentscope = {
draw = {
delay = 0;
animation = nixvimHelpers.mkRaw "function() return 0 end"; # disable animation
priority = 2;
};
options = {
try_as_border = true;
border = "top";
};
symbol = "▎";
};
};
};
# Highlight, edit, and navigate code
Expand All @@ -136,6 +154,19 @@
enable = true;
theme = "startify";
};
indent-blankline = {
enable = true;
settings = {
indent = {
smart_indent_cap = false;
priority = 1;
};
scope = {
show_start = false;
show_end = false;
};
};
};
};
extraPlugins = with pkgs.unstable.vimPlugins; [
vim-sleuth # Detect tabstop and shiftwidth automatically
Expand Down

0 comments on commit 6075f89

Please sign in to comment.