From c8eb5a222c94bb9c141df0f1686b77a1bb370ab3 Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Tue, 30 Jan 2024 11:29:13 -0500 Subject: Change formatting of comments in packer.lua --- lua/jacksontaylorxyz/packer.lua | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua index 91d9ec5..8827ff2 100644 --- a/lua/jacksontaylorxyz/packer.lua +++ b/lua/jacksontaylorxyz/packer.lua @@ -88,8 +88,13 @@ return require('packer').startup(function(use) -- Language supports use 'SuneelFreimuth/vim-gemtext' -- Syntax support for gemini markdown - use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) -- Even better syntax highlighting - + use { -- Better syntax highlighting + 'nvim-treesitter/nvim-treesitter', + run = function() + local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) + ts_update() + end, + } use { -- A super simple way to setup all the lsp stuff. 'VonHeikemen/lsp-zero.nvim', branch = 'v1.x', @@ -100,19 +105,19 @@ return require('packer').startup(function(use) {'williamboman/mason-lspconfig.nvim'}, -- Optional -- Manages the connection between what's installed with mason and the lsp config -- Autocompletion - {'hrsh7th/nvim-cmp'}, -- Required -- Completion engine, gets what to complete from different sources (LSP for one) - {'hrsh7th/cmp-nvim-lsp'}, -- Required - {'hrsh7th/cmp-buffer'}, -- Optional - {'hrsh7th/cmp-path'}, -- Optional - {'saadparwaiz1/cmp_luasnip'}, -- Optional - {'hrsh7th/cmp-nvim-lua'}, -- Optional + {'hrsh7th/nvim-cmp'}, -- Required -- Completion engine, gets what to complete from different sources (LSP for one) + {'hrsh7th/cmp-nvim-lsp'}, -- Required + {'hrsh7th/cmp-buffer'}, -- Optional + {'hrsh7th/cmp-path'}, -- Optional + {'saadparwaiz1/cmp_luasnip'}, -- Optional + {'hrsh7th/cmp-nvim-lua'}, -- Optional -- Snippets - {'L3MON4D3/LuaSnip'}, -- Required -- Snippet engine - {'rafamadriz/friendly-snippets'}, -- Optional -- The actual snippets + {'L3MON4D3/LuaSnip'}, -- Required -- Snippet engine + {'rafamadriz/friendly-snippets'}, -- Optional -- The actual snippets } } use {'fatih/vim-go', run = ':GoUpdateBinaries' } -- Nice Golang plugin - use 'buoto/gotests-vim' -- Better Golang Testing + use 'buoto/gotests-vim' -- Better Golang Testing (generates tests for you) end) -- cgit v1.2.3