Update generic stuff.

This commit is contained in:
CronyAkatsuki 2025-01-27 21:31:20 +01:00
parent 5c531443b4
commit 5bb03a44ca
4 changed files with 56 additions and 21 deletions

View File

@ -7,6 +7,7 @@ conform.setup({
lua = { "stylua" },
sh = { "shfmt" },
bash = { "shfmt" },
go = { "goimports", "gofumpt" },
},
})
@ -53,5 +54,7 @@ mason_tool_installer.setup({
"shfmt",
"mypy",
"ruff",
"goimports",
"gofumpt",
},
})

View File

@ -18,5 +18,20 @@ vim.notify = require("mini.notify").make_notify()
-- mini.nvim surround module
require("mini.surround").setup({})
-- mini.nvim file management module
require("mini.files").setup({})
-- mini.nvim diff management module
require("mini.diff").setup({})
-- mini.nvim automatic highlight word under cursor module
require("mini.cursorword").setup({})
-- mini.nvim auto pair module
require("mini.pairs").setup({})
-- mini.nvim indentscope module
require("mini.indentscope").setup({})
-- mini.nvim better buffer removal module
require("mini.bufremove").setup({})
-- mini.nvim extending git support module
require("mini.git").setup({})

View File

@ -27,3 +27,11 @@ autocmd({ "BufWritePre" }, {
vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
end,
})
-- [[ Disable commenting the next line]]
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function()
vim.opt_local.formatoptions:remove({ 'r', 'o' })
end,
})

View File

@ -98,7 +98,7 @@ require("lazy").setup({
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
requires = { "nvim-lua/plenary.nvim", lazy = true },
dependencies = { "nvim-lua/plenary.nvim", lazy = true },
},
},
@ -113,10 +113,19 @@ require("lazy").setup({
-- Simple remainder for keybindings for when I enter vim after a long time
{ "folke/which-key.nvim" },
-- Rendering markdown files in a nice way.
{ "MeanderingProgrammer/render-markdown.nvim", opts = {} },
-- Make help look a lot nicer
{ "OXY2DEV/helpview.nvim" },
-- Markdown table writting helper plugin
{ "SCJangra/table-nvim", opts = {} },
-- Better delays for keybindings and typing
{ "max397574/better-escape.nvim", opts = {} },
}, {
install = {
colorscheme = { "catppuccin" },
},
performance = {
rtp = {
disabled_plugins = {