added spell and substitute

This commit is contained in:
fwastring 2025-12-13 19:07:04 +01:00
parent 94962ecad2
commit 98a5eafd16
2 changed files with 128 additions and 157 deletions

View file

@ -128,6 +128,20 @@ with lib;
options.silent = true;
}
# Spell
{
mode = "n";
key = "zn";
action = "]s";
options.silent = true;
}
{
mode = "n";
key = "zN";
action = "[s";
options.silent = true;
}
# Buffers
{
mode = "n";
@ -195,17 +209,29 @@ with lib;
plugins = {
web-devicons.enable = true;
cmp-spell.enable = true;
substitute = {
enable = true;
settings = {
highlight_substituted_text = {
timer = 750;
};
range = {
auto_apply = true;
complete_word = true;
cursor_position = "start";
prefix = "S";
};
yank_substituted_text = false;
};
};
lualine = {
enable = true;
settings = {
options.theme = "catppuccin";
tabline = {
lualine_a = [ "mode" ];
lualine_b = [
"branch"
"diagnostics"
];
lualine_a = [ ];
lualine_b = [ ];
lualine_c = [ ];
lualine_x = [ ];
lualine_y = [ "buffers" ];
@ -275,7 +301,7 @@ with lib;
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
};
sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }