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" }, lua = { "stylua" },
sh = { "shfmt" }, sh = { "shfmt" },
bash = { "shfmt" }, bash = { "shfmt" },
go = { "goimports", "gofumpt" },
}, },
}) })
@ -53,5 +54,7 @@ mason_tool_installer.setup({
"shfmt", "shfmt",
"mypy", "mypy",
"ruff", "ruff",
"goimports",
"gofumpt",
}, },
}) })

View File

@ -18,5 +18,20 @@ vim.notify = require("mini.notify").make_notify()
-- mini.nvim surround module -- mini.nvim surround module
require("mini.surround").setup({}) require("mini.surround").setup({})
-- mini.nvim file management module -- mini.nvim diff management module
require("mini.files").setup({}) 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") vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
end, 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

@ -14,7 +14,7 @@ vim.opt.rtp:prepend(lazypath)
-- plugins installation and configuration -- plugins installation and configuration
require("lazy").setup({ require("lazy").setup({
-- lsp setup -- lsp setup
{ {
-- LSP Support -- LSP Support
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
@ -32,16 +32,16 @@ require("lazy").setup({
"dcampos/nvim-snippy", "dcampos/nvim-snippy",
-- basic snippet's -- basic snippet's
"honza/vim-snippets", "honza/vim-snippets",
-- cmp for autocompletion -- cmp for autocompletion
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
-- cmp nvim-lsp plugin -- cmp nvim-lsp plugin
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
-- cmp snippy support -- cmp snippy support
"dcampos/cmp-snippy", "dcampos/cmp-snippy",
-- path comletion -- path comletion
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
-- kind icons -- kind icons
"onsails/lspkind.nvim", "onsails/lspkind.nvim",
}, },
-- Adds git related signs to the gutter, as well as utilities for managing changes -- Adds git related signs to the gutter, as well as utilities for managing changes
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
@ -98,7 +98,7 @@ require("lazy").setup({
{ {
"ThePrimeagen/harpoon", "ThePrimeagen/harpoon",
branch = "harpoon2", branch = "harpoon2",
requires = { "nvim-lua/plenary.nvim", lazy = true }, dependencies = { "nvim-lua/plenary.nvim", lazy = true },
}, },
}, },
@ -108,15 +108,24 @@ require("lazy").setup({
-- Minimal neovim modules for a lot of things -- Minimal neovim modules for a lot of things
{ "echasnovski/mini.nvim" }, { "echasnovski/mini.nvim" },
-- Add support for git home management with bare repo -- Add support for git home management with bare repo
{ "ejrichards/baredot.nvim" }, { "ejrichards/baredot.nvim" },
-- Simple remainder for keybindings for when I enter vim after a long time -- Simple remainder for keybindings for when I enter vim after a long time
{ "folke/which-key.nvim" }, { "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 = { performance = {
rtp = { rtp = {
disabled_plugins = { disabled_plugins = {