From 4d42fa4dab34ac22806a0550827cd92a5f30638b Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 25 Dec 2024 16:01:46 -0500 Subject: [PATCH] feat: Adds brew-update function --- nvim/m-housh/lua/plugins/blink.lua | 11 +++++++++-- nvim/m-housh/lua/plugins/cmp.lua | 2 +- zsh/config/functions/brew-update | 5 +++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100755 zsh/config/functions/brew-update diff --git a/nvim/m-housh/lua/plugins/blink.lua b/nvim/m-housh/lua/plugins/blink.lua index 27f24c0..69de619 100644 --- a/nvim/m-housh/lua/plugins/blink.lua +++ b/nvim/m-housh/lua/plugins/blink.lua @@ -2,7 +2,7 @@ return { { "saghen/blink.cmp", - enabled = true, + enabled = false, dependencies = { -- "rafamadriz/friendly-snippets", { "L3MON4D3/LuaSnip", version = "v2.*" }, @@ -49,6 +49,13 @@ return { }, }, opts_extend = { "sources.default" }, - keymap = { preset = "default" }, + keymap = { + preset = "default", + + [""] = {}, + [""] = {}, + [""] = { "snippet_backward", "fallback" }, + [""] = { "snippet_forward", "fallback" }, + }, }, } diff --git a/nvim/m-housh/lua/plugins/cmp.lua b/nvim/m-housh/lua/plugins/cmp.lua index e2f0f05..1cdbfdb 100755 --- a/nvim/m-housh/lua/plugins/cmp.lua +++ b/nvim/m-housh/lua/plugins/cmp.lua @@ -1,6 +1,6 @@ return { "hrsh7th/nvim-cmp", - enabled = false, + enabled = true, event = "VeryLazy", dependencies = { "hrsh7th/cmp-nvim-lsp", diff --git a/zsh/config/functions/brew-update b/zsh/config/functions/brew-update new file mode 100755 index 0000000..40195c9 --- /dev/null +++ b/zsh/config/functions/brew-update @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +function brew-update() { + brew update && brew upgrade --greedy && brew cleanup +}