diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-18 00:58:26 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-18 00:58:28 +0200 |
commit | cb36ccfa8db66db953795fd8e22138ed1712b1cd (patch) | |
tree | fc0f8ef4e73c5fa7fb627d383a991aeb49a59bca /lua/config/lazy.lua | |
parent | 424ad679f861031485e2e2f0ca19f5b559db929b (diff) |
checkpoint
- added basic luasnip configuration
- added highlights for TODO and FIXME keywords
- added incremental selection of treesitter
- added prettier to conform formatters
- added when_disabled function to disable pairs in comments
- changed the hiding keybind to :Hide command
- only enable ` pairs in markdown
- removed <c-k> keybind
- removed cmp's calc source
- renamed keybinds for consistency
- reorganized plugins in lazy.lua
Diffstat (limited to 'lua/config/lazy.lua')
-rw-r--r-- | lua/config/lazy.lua | 151 |
1 files changed, 70 insertions, 81 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 1bdad47..3cbe77c 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -14,68 +14,68 @@ vim.opt.rtp:prepend(lazypath) -- plugins installation and configuration require("lazy").setup({ - -- lsp setup + "echasnovski/mini.nvim", + "lewis6991/gitsigns.nvim", + "tpope/vim-vinegar", + "tpope/vim-eunuch", + "mg979/vim-visual-multi", + "jghauser/follow-md-links.nvim", + "m4xshen/autoclose.nvim", + "stevearc/conform.nvim", + "mfussenegger/nvim-lint", + "neovim/nvim-lspconfig", + { - -- LSP Support - "neovim/nvim-lspconfig", - -- lsp download manager "williamboman/mason.nvim", - -- automatic lsp setup - "williamboman/mason-lspconfig.nvim", - -- additional formater support - "stevearc/conform.nvim", - -- additional linter support - "mfussenegger/nvim-lint", - -- mason autoinstaller for formatter's and linter's - "WhoIsSethDaniel/mason-tool-installer.nvim", - -- minimal snippet's support - "dcampos/nvim-snippy", - -- basic snippet's - "honza/vim-snippets", - -- cmp for autocompletion - { - "hrsh7th/nvim-cmp", - dependencies = { - -- cmp nvim-lsp plugin - "hrsh7th/cmp-nvim-lsp", - -- path comletion - "hrsh7th/cmp-path", - -- cmp snippy support - "dcampos/cmp-snippy", - "hrsh7th/cmp-calc", - }, - event = { "InsertEnter", "CmdlineEnter" }, + dependencies = { + "williamboman/mason-lspconfig.nvim", + -- for formatters and linters + "WhoIsSethDaniel/mason-tool-installer.nvim", }, - -- kind icons - "onsails/lspkind.nvim", - -- Minimal neovim modules for a lot of things - "echasnovski/mini.nvim", - -- Adds git related signs to the gutter, as well as utilities for managing changes - "lewis6991/gitsigns.nvim", - -- better ntrw - "tpope/vim-vinegar", - "tpope/vim-eunuch", - -- integration with tmux keybinds - { - "christoomey/vim-tmux-navigator", - cmd = { - "TmuxNavigateLeft", - "TmuxNavigateDown", - "TmuxNavigateUp", - "TmuxNavigateRight", - "TmuxNavigatePrevious", - }, - keys = { - { "<M-h>", "<cmd>TmuxNavigateLeft<cr>" }, - { "<M-j>", "<cmd>TmuxNavigateDown<cr>" }, - { "<M-k>", "<cmd>TmuxNavigateUp<cr>" }, - { "<M-l>", "<cmd>TmuxNavigateRight<cr>" }, - { "<M-\\>", "<cmd>TmuxNavigatePrevious<cr>" }, - }, + config = function() + require("mason").setup({ + ui = { + border = "rounded", + }, + }) + end, + }, + { + --snippets + "L3MON4D3/LuaSnip", + version = "v2.*", + build = "make install_jsregexp", + }, + { + "hrsh7th/nvim-cmp", + dependencies = { + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-path", + "hrsh7th/cmp-buffer", + "saadparwaiz1/cmp_luasnip", + "onsails/lspkind.nvim", }, - -- auto close brackets - "m4xshen/autoclose.nvim", + event = { "InsertEnter", "CmdlineEnter" }, }, + + { + "christoomey/vim-tmux-navigator", + cmd = { + "TmuxNavigateLeft", + "TmuxNavigateDown", + "TmuxNavigateUp", + "TmuxNavigateRight", + "TmuxNavigatePrevious", + }, + keys = { + { "<M-h>", "<cmd>TmuxNavigateLeft<cr>" }, + { "<M-j>", "<cmd>TmuxNavigateDown<cr>" }, + { "<M-k>", "<cmd>TmuxNavigateUp<cr>" }, + { "<M-l>", "<cmd>TmuxNavigateRight<cr>" }, + { "<M-\\>", "<cmd>TmuxNavigatePrevious<cr>" }, + }, + }, + { "ray-x/go.nvim", dependencies = { -- optional packages @@ -91,9 +91,6 @@ require("lazy").setup({ build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries }, - "mg979/vim-visual-multi", - "jghauser/follow-md-links.nvim", - { "dstein64/vim-startuptime", cmd = "StartupTime", @@ -132,9 +129,8 @@ require("lazy").setup({ vim.cmd.colorscheme("nord") end, }, - - -- Fuzzy Finder (files, lsp, etc) { + -- Fuzzy Finder (files, lsp, etc) "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim", @@ -146,20 +142,14 @@ require("lazy").setup({ }, }, }, - { - -- Highlight, edit, and navigate code "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", }, - { - -- harpoon your way around code - { - "ThePrimeagen/harpoon", - branch = "harpoon2", - requires = { "nvim-lua/plenary.nvim", lazy = true }, - }, + "ThePrimeagen/harpoon", + branch = "harpoon2", + requires = { "nvim-lua/plenary.nvim", lazy = true }, }, }, { @@ -175,14 +165,13 @@ require("lazy").setup({ }, }, }, - install = { - colorscheme = { "nord" }, - missing = false, - }, - change_detection = { - enabled = false, - notify = false, - }, - checker = { enabled = false }, - -- defaults = {lazy = true}, + -- install = { + -- colorscheme = { "nord" }, + -- missing = false, + -- }, + -- change_detection = { + -- enabled = true, + -- notify = true, + -- }, + -- checker = { enabled = true, notify = false }, }) |