Refine neovim updates

This commit is contained in:
Marko Korhonen 2022-08-05 09:37:38 +03:00
parent efae4c58c0
commit bb6771e968
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
3 changed files with 10 additions and 5 deletions

View file

@ -1,5 +1,5 @@
[actions]
nvim-packer-sync = "nvim +PackerSync"
nvim-packer-sync = "nvim -c 'autocmd User PackerComplete quitall' -c 'PackerSync'"
[config]
backup = true

View file

@ -79,7 +79,12 @@ require('packer').startup(function()
use "rafamadriz/friendly-snippets" -- Snippets collection
-- treesitter syntax highlight
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
use {
'nvim-treesitter/nvim-treesitter',
run = function()
require('nvim-treesitter.install').update({with_sync = true})
end
}
-- treesitter plugin for commentstring
use 'JoosepAlviste/nvim-ts-context-commentstring'
@ -112,8 +117,8 @@ require('packer').startup(function()
-- Vim <3 Asciidoctor
use 'habamax/vim-asciidoctor'
-- Modern filetype.vim replacement
use("nathom/filetype.nvim")
-- Modern filetype.vim replacement
use("nathom/filetype.nvim")
end)

View file

@ -155,7 +155,7 @@ update() {
}
plugins() {
nvim +PackerSync +TSUpdate
nvim -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
zinit self-update
zinit update -p
$HOME/.tmux/plugins/tpm/bin/update_plugins all