diff --git a/.config/nvim/snippets/tex.lua b/.config/nvim/snippets/tex.lua index d0f3e5a..b415402 100644 --- a/.config/nvim/snippets/tex.lua +++ b/.config/nvim/snippets/tex.lua @@ -134,7 +134,7 @@ local item = s( table.insert(autosnippets, item) local tableenv = s( - { trig = "table(%d+) (%d+)", regTrig = true, desc = "Table Environment" }, + { trig = "table(%d+) (%d+);", regTrig = true, desc = "Table Environment" }, fmt( [[ \begin{{tabular}}{{|{}}} @@ -193,7 +193,7 @@ local tableenv = s( } ) ) -table.insert(snippets, tableenv) +table.insert(autosnippets, tableenv) local pdf = s( { trig = "-pdf", desc = "Insert PDF" }, diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..f710f2e --- /dev/null +++ b/setup.sh @@ -0,0 +1,29 @@ +#!/bin/zsh + +echo "========================" +echo " Setup Script " +echo "========================" + +# Check if running on macOS or Linux +if [[ "$(uname)" == "Darwin" ]]; then + OS="macOS" +elif [[ "$(uname)" == "Linux" ]]; then + OS="Linux" +else + error "Unsupported OS: $(uname)" + exit 1 +fi + +success "Detected OS: $OS" + +if [[ "$OS" == "macOS" ]]; then + echo "===========================" + echo " Installing Brew " + echo "===========================" + + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + + +else + echo "Maybe someday Linux..." +fi