diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 4264323..a6f2598 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -8,9 +8,7 @@ return { { 'ggandor/lightspeed.nvim', event = "VeryLazy" }, -- jump between letters with improved fFtT quicksearch, mimics sneak { 'lewis6991/gitsigns.nvim', -- show vcs changes on left-hand gutter - config = function() - require('plug._gitsigns') - end, + config = function() require('plug._gitsigns') end, event = "BufRead" }, { "m4xshen/smartcolumn.nvim", config = true }, -- auto-hiding colorcolumn -- files @@ -29,9 +27,7 @@ return { 'NvChad/nvim-colorizer.lua', -- color hex, named colors in the correct preview scheme config = function() require('colorizer').setup({ - user_default_options = { - mode = 'virtualtext' - } + user_default_options = { mode = 'virtualtext' } }) end, event = "VeryLazy" @@ -211,36 +207,32 @@ return { end, event = "BufReadPre" }, { - 'lewis6991/spellsitter.nvim', -- uses treesitter to highlight spelling errors - config = function() require('spellsitter').setup() end, - event = "BufReadPre" -}, -- lsp - { - "VonHeikemen/lsp-zero.nvim", + -- lsp + "VonHeikemen/lsp-zero.nvim", + dependencies = { + { "neovim/nvim-lspconfig", branch = "master" }, + "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", { + "hrsh7th/nvim-cmp", + branch = "main", dependencies = { - { "neovim/nvim-lspconfig", branch = "master" }, - "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", { - "hrsh7th/nvim-cmp", - branch = "main", - dependencies = { - "andersevenrud/cmp-tmux", "cbarrete/completion-vcard", - "f3fora/cmp-spell", "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-path", "hrsh7th/cmp-buffer", - "hrsh7th/cmp-calc", "hrsh7th/cmp-cmdline", - "hrsh7th/cmp-nvim-lua", "dmitmel/cmp-digraphs", - "jc-doyle/cmp-pandoc-references", - "kdheepak/cmp-latex-symbols", "lukas-reineke/cmp-rg", - "crispgm/cmp-beancount", "ray-x/cmp-treesitter", - "saadparwaiz1/cmp_luasnip" - } - }, "L3MON4D3/LuaSnip", "rafamadriz/friendly-snippets", - { "lukas-reineke/lsp-format.nvim", config = true }, - { "j-hui/fidget.nvim", config = true } -- loading animations for some LSP - }, - config = function() require('plug._lsp') end, - branch = "v2.x" - }, { 'simrat39/symbols-outline.nvim', config = true, event = "VeryLazy" }, -- vista-like outline view for code - { 'ray-x/lsp_signature.nvim', config = true }, -- UI improvements + "andersevenrud/cmp-tmux", "cbarrete/completion-vcard", + "f3fora/cmp-spell", "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-path", "hrsh7th/cmp-buffer", + "hrsh7th/cmp-calc", "hrsh7th/cmp-cmdline", + "hrsh7th/cmp-nvim-lua", "dmitmel/cmp-digraphs", + "jc-doyle/cmp-pandoc-references", + "kdheepak/cmp-latex-symbols", "lukas-reineke/cmp-rg", + "crispgm/cmp-beancount", "ray-x/cmp-treesitter", + "saadparwaiz1/cmp_luasnip" + } + }, "L3MON4D3/LuaSnip", "rafamadriz/friendly-snippets", + { "lukas-reineke/lsp-format.nvim", config = true }, + { "j-hui/fidget.nvim", config = true } -- loading animations for some LSP + }, + config = function() require('plug._lsp') end, + branch = "v2.x" +}, { 'simrat39/symbols-outline.nvim', config = true, event = "VeryLazy" }, -- vista-like outline view for code + { 'ray-x/lsp_signature.nvim', config = true }, -- UI improvements { 'stevearc/dressing.nvim', config = true }, { 'rcarriga/nvim-notify', config = function() vim.notify = require("notify") end