diff --git a/git_commit.sh b/git_commit.sh new file mode 100755 index 00000000..9410788c --- /dev/null +++ b/git_commit.sh @@ -0,0 +1,12 @@ +#!/bin/bash --login +if [[ $1 != "" && $2 != "" && $3 != "" ]]; then + # Default Strategy is to merge codebase + git config pull.rebase false + git config commit.gpgsign true + git pull origin master + git add . --all + git commit -a -S --author="${1} <${2}>" -m "${3}" + git push -u origin master +else + echo "USAGE: ${0} '' ''" +fi diff --git a/init.lua b/init.lua index 5cf5068a..bab058bd 100644 --- a/init.lua +++ b/init.lua @@ -41,6 +41,24 @@ P.S. You can delete this when you're done too. It's your config now :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +vim.g.copilot_no_tab_map = true +vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) +vim.api.nvim_set_keymap("i", "", 'copilot#Previous()', { silent = true, expr = true }) +vim.api.nvim_set_keymap("i", "", 'copilot#Next()', { silent = true, expr = true }) +vim.g.copilot_filetypes = { + ["*"] = false, + ["c"] = true, + ["c++"] = true, + ["go"] = true, + ["javascript"] = true, + ["typescript"] = true, + ["java"] = true, + ["lua"] = false, + ["ruby"] = true, + ["rust"] = true, + ["python"] = true, +} + -- Install package manager -- https://github.com/folke/lazy.nvim -- `:help lazy.nvim.txt` for more info