config(nvim): saturday tweaks

See https://github.com/echasnovski/nvim
main
sudo pacman -Syu 2024-10-26 11:11:53 +07:00
parent 243c3c3166
commit 1dfd559fbe
1 changed files with 11 additions and 6 deletions

View File

@ -350,6 +350,9 @@ require("lazy").setup({
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-surround.md -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-surround.md
require("mini.surround").setup() require("mini.surround").setup()
-- Use cl instead of s
vim.keymap.set({ "n", "x" }, "s", "<Nop>")
end, end,
}, },
@ -451,6 +454,7 @@ require("lazy").setup({
"git_config", "git_config",
"gitcommit", "gitcommit",
"go", "go",
"json",
"lua", "lua",
"make", "make",
"markdown", "markdown",
@ -470,6 +474,9 @@ require("lazy").setup({
return vim.api.nvim_buf_line_count(bufnr) > 10000 return vim.api.nvim_buf_line_count(bufnr) > 10000
end, end,
}, },
incremental_selection = { enable = false },
textobjects = { enable = false },
indent = { enable = false },
}) })
end, end,
}, },
@ -607,6 +614,7 @@ require("lazy").setup({
"cpp", "cpp",
"gitcommit", "gitcommit",
"go", "go",
"json",
"just", "just",
"lua", "lua",
"make", "make",
@ -627,6 +635,7 @@ require("lazy").setup({
cpp = true, cpp = true,
gitcommit = true, gitcommit = true,
go = true, go = true,
json = true,
just = true, just = true,
lua = true, lua = true,
make = true, make = true,
@ -663,12 +672,8 @@ require("lazy").setup({
}, },
}, },
}, },
rocks = { rocks = { enabled = false },
enabled = false, throttle = { enabled = true },
},
throttle = {
enabled = true,
},
git = { git = {
-- Seconds -- Seconds
cooldown = 5 * 60, cooldown = 5 * 60,