update nixvim

This commit is contained in:
Michi Floßmann 2024-07-13 14:25:39 +02:00
parent 5844802ff0
commit 8a72107a1d
3 changed files with 56 additions and 85 deletions

View file

@ -8,7 +8,7 @@
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/configs/guess-indent.lua
config = ''
require("guess-indent").setup({})
vim.cmd.lua { args = { "require('guess-indent').set_from_buffer('auto_cmd')" }, mods = { silent = true } }
vim.cmd.lua { args = { "require('guess-indent').set_from_buffer()" }, mods = { silent = true } }
'';
};
}

View file

@ -8,12 +8,12 @@
enable = true;
# Enable treesitter based indentation (use '=' to auto-indent)
indent = true;
settings.indent.enable = true;
# Workaround to enable incremental selection without setting default keymaps (keymaps are set globally)
# This is needed in order to set custom descriptions and avoid to have multiple keymaps
# See https://github.com/nix-community/nixvim/issues/1506
moduleConfig.incremental_selection = {
settings.incremental_selection = {
enable = true;
keymaps = lib.mkForce { };
};