diff --git a/after/plugin/code-tools.lua b/after/plugin/code-tools.lua index ab66597..199c9df 100644 --- a/after/plugin/code-tools.lua +++ b/after/plugin/code-tools.lua @@ -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", }, }) diff --git a/after/plugin/mini.lua b/after/plugin/mini.lua index 067e81e..cfa8614 100644 --- a/after/plugin/mini.lua +++ b/after/plugin/mini.lua @@ -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({}) diff --git a/lua/crony/init.lua b/lua/crony/init.lua index b2c402e..4ca50b4 100644 --- a/lua/crony/init.lua +++ b/lua/crony/init.lua @@ -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, +}) diff --git a/lua/crony/lazy.lua b/lua/crony/lazy.lua index 87806db..31ea225 100644 --- a/lua/crony/lazy.lua +++ b/lua/crony/lazy.lua @@ -14,7 +14,7 @@ vim.opt.rtp:prepend(lazypath) -- plugins installation and configuration require("lazy").setup({ - -- lsp setup + -- lsp setup { -- LSP Support "neovim/nvim-lspconfig", @@ -32,16 +32,16 @@ require("lazy").setup({ "dcampos/nvim-snippy", -- basic snippet's "honza/vim-snippets", - -- cmp for autocompletion - "hrsh7th/nvim-cmp", - -- cmp nvim-lsp plugin - "hrsh7th/cmp-nvim-lsp", - -- cmp snippy support - "dcampos/cmp-snippy", - -- path comletion - "hrsh7th/cmp-path", - -- kind icons - "onsails/lspkind.nvim", + -- cmp for autocompletion + "hrsh7th/nvim-cmp", + -- cmp nvim-lsp plugin + "hrsh7th/cmp-nvim-lsp", + -- cmp snippy support + "dcampos/cmp-snippy", + -- path comletion + "hrsh7th/cmp-path", + -- kind icons + "onsails/lspkind.nvim", }, -- Adds git related signs to the gutter, as well as utilities for managing changes "lewis6991/gitsigns.nvim", @@ -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 }, }, }, @@ -108,15 +108,24 @@ require("lazy").setup({ -- Minimal neovim modules for a lot of things { "echasnovski/mini.nvim" }, - -- Add support for git home management with bare repo - { "ejrichards/baredot.nvim" }, + -- Add support for git home management with bare repo + { "ejrichards/baredot.nvim" }, - -- Simple remainder for keybindings for when I enter vim after a long time - { "folke/which-key.nvim" }, + -- 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 = {