Update to new version settings.

This commit is contained in:
CronyAkatsuki 2024-03-30 15:46:31 +01:00
parent d16d263f2b
commit 5655acaa45

View File

@ -83,7 +83,7 @@
prettierd
];
plugins = {
comment-nvim.enable = true;
comment.enable = true;
ts-context-commentstring.enable = true;
@ -96,7 +96,7 @@
indent-blankline = {
enable = true;
scope.enabled = false;
settings.scope.enabled = false;
};
cmp = {
@ -176,35 +176,37 @@
oil = {
enable = true;
defaultFileExplorer = true;
extraOptions = { show_hidden = true; };
settings = {
show_hidden = true;
default_file_explorer = true;
};
};
treesitter.enable = true;
gitsigns = {
enable = true;
signs = {
settings.signs = {
add.text = "";
change.text = "";
changedelete.text = "";
delete.text = "";
topdelete.text = "";
untracked.text = "";
};
onAttach.function = ''
function(buffer)
local gs = package.loaded.gitsigns
local function map(mode, l, r, desc)
vim.keymap.set(mode, l, r, { buffer = buffer, desc = desc })
on_attach = ''
function(buffer)
local gs = package.loaded.gitsigns
local function map(mode, l, r, desc)
vim.keymap.set(mode, l, r, { buffer = buffer, desc = desc })
end
-- stylua: ignore start
map("n", "]g", gs.next_hunk, "Next git hunk")
map("n", "[g", gs.prev_hunk, "Previous git hunk")
end
-- stylua: ignore start
map("n", "]g", gs.next_hunk, "Next git hunk")
map("n", "[g", gs.prev_hunk, "Previous git hunk")
end
'';
'';
};
};
mini = {