Compare commits

..

3 Commits

@ -1,2 +1,17 @@
# For vim
set -sg escape-time 0
set -g default-terminal "tmux-256color"
# This is convenient sometimes
set -g mouse
# Attempting to get terminal colour
# set -g default-terminal "tmux-256color"
set -g default-terminal "xterm-256color"
# Top status with nice colours
set -g status-style "fg=#665c54"
set -g status-left-style "fg=#928374"
set -g status-bg default
set -g status-position top
set -g status-interval 1
set -g status-left ""

@ -0,0 +1,31 @@
# Create a new profile in ~/.config/Git
read -p "Enter git username: " NAME
read -p "Enter Email: " EMAIL
mkdir -p ~/.config/Git
PROFILE_PATH=~/.config/Git/git-profile-${NAME}.conf
cat <<EOT >> $PROFILE_PATH
[user]
email = $EMAIL
name = $NAME
[core]
editor = nvim
EOT
# Include the profile in gitconfig
touch ~/.gitconfig
read -p "Default profile? (y/n) " DEFAULT
if [ "$DEFAULT" != "y" ]; then
read -p "Enter profile directory (for example '~/Work'): " DIR
cat <<EOT >> ~/.gitconfig
[includeIf "gitdir:${DIR}/**"]
path = $PROFILE_PATH
EOT
else
cat <<EOT >> ~/.gitconfig
[include]
path = $PROFILE_PATH
EOT
fi

@ -0,0 +1 @@
ln -s $(pwd)/.tmux.conf ~

@ -1,51 +1,51 @@
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
-- Navigation
use {
'nvim-telescope/telescope.nvim', tag = '0.1.1',
-- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } }
}
-- Colours
use('ellisonleao/gruvbox.nvim')
use({ 'rose-pine/neovim', as = 'rose-pine' })
use({ 'bluz71/vim-moonfly-colors', as = 'moonfly' })
-- Treesitter
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('nvim-treesitter/playground')
-- Editing
use('mbbill/undotree')
use('tpope/vim-surround')
use('tpope/vim-commentary')
-- LSP
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
-- LSP Support
{ 'neovim/nvim-lspconfig' }, -- Required
{
-- Optional
'williamboman/mason.nvim',
run = function()
vim.cmd [[MasonUpdate]]
end,
},
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
-- Autocompletion
{ 'hrsh7th/nvim-cmp' }, -- Required
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
{ 'L3MON4D3/LuaSnip' }, -- Required
},
use('editorconfig/editorconfig-vim'),
}
use 'wbthomason/packer.nvim'
-- Navigation
use {
'nvim-telescope/telescope.nvim', tag = '0.1.5',
-- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } }
}
-- Colours
use('ellisonleao/gruvbox.nvim')
use({ 'rose-pine/neovim', as = 'rose-pine' })
use({ 'bluz71/vim-moonfly-colors', as = 'moonfly' })
-- Treesitter
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('nvim-treesitter/playground')
-- Editing
use('mbbill/undotree')
use('tpope/vim-surround')
use('tpope/vim-commentary')
-- LSP
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
-- LSP Support
{ 'neovim/nvim-lspconfig' }, -- Required
{
-- Optional
'williamboman/mason.nvim',
run = function()
vim.cmd [[MasonUpdate]]
end,
},
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
-- Autocompletion
{ 'hrsh7th/nvim-cmp' }, -- Required
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
{ 'L3MON4D3/LuaSnip' }, -- Required
},
use('editorconfig/editorconfig-vim'),
}
end)

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/share/lua/5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/share/lua/5.1/?/init.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/luarocks/rocks-5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1694316387/lib/lua/5.1/?.so"
local package_path_str = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?/init.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end

Loading…
Cancel
Save