Altering the neovim config for LSP plugin load order and adding the
prettier LSP for reference (even though mason-lspconfig doesn't load it) Chaning the zshrc template for better handling of include files, adding support for easily extending include files, changing the loaded plugins to better support currently work flows and minor cleanup of the plugin download.
This commit is contained in:
parent
87978e824b
commit
7ad4fe2350
@ -14,8 +14,8 @@ end
|
|||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
require('plugins/lspconfig'),
|
|
||||||
require('plugins/mason'),
|
require('plugins/mason'),
|
||||||
|
require('plugins/lspconfig'),
|
||||||
require('plugins/gruvbox'),
|
require('plugins/gruvbox'),
|
||||||
require('plugins/comment'),
|
require('plugins/comment'),
|
||||||
require('plugins/dap'),
|
require('plugins/dap'),
|
||||||
|
|||||||
@ -50,6 +50,7 @@ return {
|
|||||||
-- 'jdtls', -- java
|
-- 'jdtls', -- java
|
||||||
'lua_ls',
|
'lua_ls',
|
||||||
'marksman', -- markdown
|
'marksman', -- markdown
|
||||||
|
-- 'prettier',
|
||||||
'pylsp',
|
'pylsp',
|
||||||
'rust_analyzer',
|
'rust_analyzer',
|
||||||
-- 'snyk',
|
-- 'snyk',
|
||||||
|
|||||||
@ -9,7 +9,7 @@ vim.opt.fillchars = 'fold: ' -- Sets the
|
|||||||
vim.opt.foldcolumn = '0' -- Disables the foldcolumn
|
vim.opt.foldcolumn = '0' -- Disables the foldcolumn
|
||||||
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' -- Uses Treesitter to determine where code folding should occur
|
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' -- Uses Treesitter to determine where code folding should occur
|
||||||
vim.opt.foldlevel = 10 -- Sets the initial level at which folds will be closed
|
vim.opt.foldlevel = 10 -- Sets the initial level at which folds will be closed
|
||||||
vim.opt.foldlevelstart = 2 -- Sets the initial fold level
|
vim.opt.foldlevelstart = 4 -- Sets the initial fold level
|
||||||
vim.opt.foldmethod = 'expr' -- Attempt to use the syntax of a file to set folds.
|
vim.opt.foldmethod = 'expr' -- Attempt to use the syntax of a file to set folds.
|
||||||
vim.opt.foldnestmax = 4 -- Maximum level of fold nesting
|
vim.opt.foldnestmax = 4 -- Maximum level of fold nesting
|
||||||
vim.opt.formatoptions = 'cqrto' -- Allow auto insertion of comment lines when using o or O on a comment.
|
vim.opt.formatoptions = 'cqrto' -- Allow auto insertion of comment lines when using o or O on a comment.
|
||||||
|
|||||||
60
zshrc
60
zshrc
@ -7,19 +7,12 @@ then
|
|||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]
|
### ZSH Configuration
|
||||||
then
|
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
ZSH_THEME="fb-custom"
|
ZSH_THEME="fb-custom"
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
|
||||||
#CASE_SENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion.
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
HYPHEN_INSENSITIVE="true"
|
HYPHEN_INSENSITIVE="true"
|
||||||
@ -27,37 +20,51 @@ HYPHEN_INSENSITIVE="true"
|
|||||||
# Uncomment one of the following lines to change the auto-update behavior
|
# Uncomment one of the following lines to change the auto-update behavior
|
||||||
zstyle ':omz:update' mode reminder frequency 14
|
zstyle ':omz:update' mode reminder frequency 14
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
# Install the zsh-autosuggestions plugin if it doesn't exist
|
||||||
|
if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]
|
||||||
|
then
|
||||||
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||||
|
fi
|
||||||
|
|
||||||
plugins=(
|
plugins=(
|
||||||
|
aws
|
||||||
copypath
|
copypath
|
||||||
dotenv
|
dotenv
|
||||||
git
|
git
|
||||||
history
|
history
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
virtualenvwrapper
|
virtualenv
|
||||||
|
virtualenvwrapper # Used for autoloading project .venvs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Load Oh My ZSH
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
# ZSH options
|
||||||
# You may need to manually set your language environment
|
setopt NO_clobber # Do not clobber files by default
|
||||||
export LANG=en_US.UTF-8
|
setopt hist_ignore_all_dups # Replace old history with the newest call to an identical call
|
||||||
export LC_ALL=en_US.UTF-8
|
setopt hist_ignore_space # Remove history lines that start with spaces
|
||||||
|
|
||||||
|
### User configuration
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
||||||
# Paths to prepend to system path
|
# Paths to prepend to system path
|
||||||
path=($GOPATH/bin
|
path=(
|
||||||
|
$GOPATH/bin
|
||||||
$HOME/.cargo/bin
|
$HOME/.cargo/bin
|
||||||
$HOME/.local/bin
|
$HOME/.local/bin
|
||||||
$path)
|
$path
|
||||||
|
)
|
||||||
|
|
||||||
|
# Autoload keychain for ssh-agent handling if it is installed
|
||||||
if command -v keychain &> /dev/null
|
if command -v keychain &> /dev/null
|
||||||
then
|
then
|
||||||
eval $(keychain --eval --quiet --nogui --noask)
|
eval $(keychain --eval --quiet --nogui --noask)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setopt NO_clobber
|
### Custom functions
|
||||||
setopt hist_ignore_all_dups
|
# Timing function for checking zsh load speed
|
||||||
setopt hist_ignore_space
|
|
||||||
|
|
||||||
timezsh() {
|
timezsh() {
|
||||||
shell=$SHELL
|
shell=$SHELL
|
||||||
for i in $(seq 1 10)
|
for i in $(seq 1 10)
|
||||||
@ -68,16 +75,17 @@ timezsh() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -f "$HOME/.zsh_aliases" ]
|
### Environment specific include files
|
||||||
then
|
|
||||||
touch $HOME/.zsh_aliases
|
|
||||||
fi
|
|
||||||
|
|
||||||
include_files=(
|
include_files=(
|
||||||
"$HOME/.zsh_aliases"
|
"$HOME/.zsh_aliases"
|
||||||
|
"$HOME/.zsh_exports"
|
||||||
)
|
)
|
||||||
|
|
||||||
for file in $include_files
|
for file in $include_files; do
|
||||||
do
|
if [ ! -f $file ]
|
||||||
|
then
|
||||||
|
touch $file
|
||||||
|
fi
|
||||||
|
|
||||||
source $file
|
source $file
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user