docs: add more comments

This commit is contained in:
Nicolas Goudry 2024-06-05 16:12:13 +02:00
parent 42d32eb2e4
commit fc38402c4d
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
5 changed files with 10 additions and 1 deletions

View file

@ -9,6 +9,8 @@
event = "BufRead"; event = "BufRead";
group = "large_buffer_detector"; group = "large_buffer_detector";
# Disable LSP, TS, syntax and some settings on large buffers
# Note: large_buf is set by astrocore plugin
callback.__raw = '' callback.__raw = ''
function(args) function(args)
if vim.b.large_buf then if vim.b.large_buf then

View file

@ -68,7 +68,7 @@
# Always show tabline (TODO: use with heirline?) # Always show tabline (TODO: use with heirline?)
#showtabline = 2; #showtabline = 2;
# Show signs instead of number in gutter # Show signs column
signcolumn = "yes"; signcolumn = "yes";
# Override ignorecase if search pattern contains uppercase characters # Override ignorecase if search pattern contains uppercase characters

View file

@ -1,3 +1,4 @@
# homepage: https://github.com/AstroNvim/astrocore
{ lib, pkgs, ... }: { lib, pkgs, ... }:
{ {

View file

@ -1,3 +1,5 @@
# homepage: https://github.com/lewis6991/gitsigns.nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/gitsigns/index.html
{ icons, ... }: { icons, ... }:
{ {
@ -5,11 +7,13 @@
enable = true; enable = true;
settings = { settings = {
# Show line blame with custom text
current_line_blame = true; current_line_blame = true;
current_line_blame_formatter = " <author>, <author_time:%R> <summary>"; current_line_blame_formatter = " <author>, <author_time:%R> <summary>";
current_line_blame_formatter_nc = " Uncommitted"; current_line_blame_formatter_nc = " Uncommitted";
current_line_blame_opts.ignore_whitespace = true; current_line_blame_opts.ignore_whitespace = true;
# Use same icon for all signs (only color matters)
signs = { signs = {
add.text = icons.GitSign; add.text = icons.GitSign;
change.text = icons.GitSign; change.text = icons.GitSign;
@ -26,6 +30,7 @@
# https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/gitsigns.lua # https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/gitsigns.lua
colorschemes.catppuccin.settings.integrations.gitsigns = true; colorschemes.catppuccin.settings.integrations.gitsigns = true;
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/gitsigns.lua#L9-L21
keymaps = [ keymaps = [
{ {
key = "]g"; key = "]g";

View file

@ -1,3 +1,4 @@
# homepage: https://github.com/NMAC427/guess-indent.nvim
{ pkgs, ... }: { pkgs, ... }:
{ {