[neovim] Update plugins

This commit is contained in:
Daniel Carrillo 2022-10-22 18:19:32 +02:00
parent 81035e624c
commit fa60eca975
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 23 additions and 19 deletions

View File

@ -10,6 +10,7 @@
PLUGINS_DIR="$HOME/.local/share/nvim/site/pack/packer/start"
CONF_DIR="$HOME/.config/nvim/lua/core/"
has_updates=false
function check_update() {
local plugin=$1
@ -23,12 +24,13 @@ function check_update() {
remote_url=$(git config --get remote.origin.url)
if [[ "$current_commit" != "$last_commit" ]]; then
echo -e "Plugin $plugin has a new version $last_commit (the current version is $current_commit)\n\tURL: $remote_url"
git log "${current_commit}"..origin/HEAD --pretty='format:%x09%h - %s (%cr) <%an>' --no-merges
if [[ $update == "--update" ]]; then
sed -i "s/$current_commit/$last_commit/" "$CONF_DIR/plugins.lua"
fi
else
echo "Plugin $plugin is up to date."
has_updates=true
fi
popd > /dev/null || exit
@ -54,4 +56,8 @@ grep -P "^\t*requires.*commit" plugins.lua | cut -f 2,4 -d "\"" | while IFS= rea
check_update "$plugin" "$current_commit" "$update"
done
if [ "$has_updates" == "false" ]; then
echo "Everything is up to date"
fi
popd > /dev/null || exit

View File

@ -43,9 +43,9 @@ return packer.startup(function(use)
use({ "numToStr/Comment.nvim", tag = "v0.*" })
use({ "JoosepAlviste/nvim-ts-context-commentstring", commit = "2941f0064874b33e93d3a794a8a4e99f5f6ece56" })
use({ "kyazdani42/nvim-web-devicons", commit = "9061e2d355ecaa2b588b71a35e7a11358a7e51e1" })
use({ "akinsho/bufferline.nvim", tag = "v2.*" })
use({ "akinsho/bufferline.nvim", tag = "v3.*" })
use({ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" })
use({ "nvim-lualine/lualine.nvim", commit = "edca2b03c724f22bdc310eee1587b1523f31ec7c" })
use({ "nvim-lualine/lualine.nvim", commit = "abb03129e0b0b7f4c992b1b4c98245cd4422e7d5" })
use({ "lewis6991/impatient.nvim", commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6" })
use({ "lukas-reineke/indent-blankline.nvim", tag = "v2.*" })
use({ "nvim-zh/auto-save.nvim", commit = "4b59610e1318f8a89501cee9d47a0e8650f0a4d5" })
@ -53,20 +53,20 @@ return packer.startup(function(use)
use({ "romgrk/fzy-lua-native", commit = "085c7d262aa35cc55a8523e8c1618d398bf717a7", run = "make" })
use({ "mg979/vim-visual-multi", tag = "v0.*" })
use({ "Shatur/neovim-session-manager", commit = "4005dac93f5cd1257792259ef4df6af0e3afc213" })
use({ "nvim-treesitter/nvim-treesitter", commit = "8f927a4d50716e534c5845e835625962adf878e1" })
use({ "nvim-treesitter/nvim-treesitter", commit = "3eb6577a3b58e4d0e76057ad1309255678739b61" })
use({ "ray-x/sad.nvim", commit = "01b7d84f4f73c8963f5933f09e88c833757bc7d8" })
use({
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
requires = { "MunifTanjim/nui.nvim", commit = "c59bdcfde011b88bfb71b5c4351684cf67bf5f9f" },
requires = { "MunifTanjim/nui.nvim", commit = "35758e946a64376e0e9625a27469410b3d1f9223" },
})
-- Colorschemes
use({ "folke/tokyonight.nvim", commit = "9fba0cdd05382a427dafaa2b8ebb4aba99126bc0" })
use({ "EdenEast/nightfox.nvim", commit = "15f3b5837a8d07f45cbe16753fbf13630bc167a3" })
use({ "folke/tokyonight.nvim", commit = "9a0843ba36ff9720198ca15ac2351c40186543ab" })
use({ "EdenEast/nightfox.nvim", commit = "28eeaaea2e9fafc1c6b22eef6b9a6e2b53fa02a8" })
-- cmp plugins
use({ "hrsh7th/nvim-cmp", commit = "e94d3489311f941788756953df23ca84f83eec95" })
use({ "hrsh7th/nvim-cmp", commit = "cdb77665bbf23bd2717d424ddf4bf98057c30bb3" })
use({ "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa" })
use({ "hrsh7th/cmp-path", commit = "91ff86cd9c29299a64f968ebb45846c485725f23" })
use({ "saadparwaiz1/cmp_luasnip", commit = "a9de941bcbda508d0a45d28ae366bb3f08db2e36" })
@ -74,13 +74,13 @@ return packer.startup(function(use)
-- Snippets
use({ "L3MON4D3/LuaSnip", tag = "v1.*" })
use({ "rafamadriz/friendly-snippets", commit = "fd16b4d9dc58119eeee57e9915864c4480d591fd" })
use({ "rafamadriz/friendly-snippets", commit = "b838c362477a4af8a0251518a6865e518f4ed6eb" })
-- LSP
use({ "neovim/nvim-lspconfig", commit = "2dd9e060f21eecd403736bef07ec83b73341d955" })
use({ "williamboman/mason.nvim", commit = "c8f00c49d9db168b3b622d31e836d7389cae0761" })
use({ "williamboman/mason-lspconfig.nvim", commit = "bf8ac1221aed7d61abc646cffb5450b1aca31d39" })
use({ "jose-elias-alvarez/null-ls.nvim", commit = "643c67a296711ff40f1a4d1bec232fa20b179b90" })
use({ "neovim/nvim-lspconfig", commit = "ee2e8c63cff0a8bfc7f4ef985ea466f10bb7e691" })
use({ "williamboman/mason.nvim", commit = "bee9e44532303689fbe01c73994c5307f531776a" })
use({ "williamboman/mason-lspconfig.nvim", commit = "90fcb1fe68eb791d58fb03fd1d535d088cb3af90" })
use({ "jose-elias-alvarez/null-ls.nvim", commit = "24463756e80ce381f530c02debe781f3c7ba7599" })
use({ "RRethy/vim-illuminate", commit = "0603e75fc4ecde1ee5a1b2fc8106ed6704f34d14" })
use({ "folke/trouble.nvim", commit = "ed65f84abc4a1e5d8f368d7e02601fc0357ea15e" })
use({ "simrat39/symbols-outline.nvim", commit = "6a3ed24c5631da7a5d418bced57c16b32af7747c" })
@ -95,18 +95,18 @@ return packer.startup(function(use)
})
-- Git
use({ "lewis6991/gitsigns.nvim", tag = "v0.5*" })
use({ "lewis6991/gitsigns.nvim", tag = "v0.*" })
use({ "sindrets/diffview.nvim", commit = "a1fbcaa7e1e154cfa793ab44da4a6eb0ae15458d" })
use({ "f-person/git-blame.nvim", commit = "08e75b7061f4a654ef62b0cac43a9015c87744a2" })
-- DAP
use({ "mfussenegger/nvim-dap", tag = "0.3*" })
use({ "mfussenegger/nvim-dap", tag = "0.*" })
use({ "rcarriga/nvim-dap-ui", tag = "v2.*" })
use({ "ravenxrz/DAPInstall.nvim", commit = "8798b4c36d33723e7bba6ed6e2c202f84bb300de" })
use({ "theHamsta/nvim-dap-virtual-text", commit = "2971ce3e89b1711cc26e27f73d3f854b559a77d4" })
-- Go
use({ "ray-x/go.nvim", commit = "1aef2d60bd220a8d58a0b5fed6af696b6244ce1d" })
use({ "ray-x/go.nvim", commit = "7720ddcbeac7fee4a2d30079f3c3c9d26a1236b5" })
use({
"ray-x/guihua.lua",
commit = "2fce8a8b462cf6599d9422efb157773126e1c7ce",

View File

@ -14,8 +14,6 @@ if not dap_install_status_ok then
end
dap_install.config("python", {})
-- add other configs here
dapui.setup({})
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" })