Compare commits
3 Commits
aa465386e5
...
11e85cb7be
Author | SHA1 | Date |
---|---|---|
RageCage64 | 11e85cb7be | 9 months ago |
RageCage64 | 2f4688afcb | 9 months ago |
RageCage64 | 5f942ee17c | 9 months ago |
@ -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)
|
||||
|
Loading…
Reference in New Issue