Cleanup and minor tweaks
This commit is contained in:
parent
2f8f5911db
commit
756b7f8c60
11 changed files with 17 additions and 113 deletions
|
@ -1,5 +1,5 @@
|
||||||
[user]
|
[user]
|
||||||
email = pgfm@meager.io
|
email = pfm@meager-software.com
|
||||||
name = pfm
|
name = pfm
|
||||||
[alias]
|
[alias]
|
||||||
ll = log --oneline --decorate --graph
|
ll = log --oneline --decorate --graph
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
" === JSON Support === {{
|
|
||||||
|
|
||||||
" Properly handle comments in JSON.
|
|
||||||
autocmd FileType json syntax match Comment +\/\/.\+$+
|
|
||||||
|
|
||||||
" }}
|
|
|
@ -1,9 +0,0 @@
|
||||||
" === Tex / LaTeX Support === {{
|
|
||||||
|
|
||||||
" Default tex flavor to use if not detected.
|
|
||||||
let g:tex_flavor = "latex"
|
|
||||||
|
|
||||||
" Zathura is a minimal PDF viewer with Vim bindings.
|
|
||||||
let g:vimtex_view_method = 'zathura'
|
|
||||||
|
|
||||||
" }}
|
|
|
@ -1,12 +0,0 @@
|
||||||
lua << EOF
|
|
||||||
require('lint').linters_by_ft = {
|
|
||||||
html = {'tidy',},
|
|
||||||
markdown = {'vale',},
|
|
||||||
sh = {'shellcheck',},
|
|
||||||
vim = {'vint',},
|
|
||||||
yaml = {'yamllint'},
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
" Run linting after buffer write
|
|
||||||
au BufWritePost <buffer> lua require('lint').try_lint()
|
|
|
@ -1,5 +0,0 @@
|
||||||
lua << EOF
|
|
||||||
require'nvim-web-devicons'.setup {
|
|
||||||
default = true;
|
|
||||||
}
|
|
||||||
EOF
|
|
|
@ -1,14 +0,0 @@
|
||||||
lua << EOF
|
|
||||||
local actions = require("telescope.actions")
|
|
||||||
local trouble = require("trouble.providers.telescope")
|
|
||||||
require('telescope').setup {
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
require('telescope').load_extension('fzf')
|
|
||||||
EOF
|
|
|
@ -1,5 +0,0 @@
|
||||||
lua << EOF
|
|
||||||
require("trouble").setup {
|
|
||||||
-- empty = default settings
|
|
||||||
}
|
|
||||||
EOF
|
|
|
@ -1,2 +0,0 @@
|
||||||
" Let other signs (e.g. linter errors) take precedence over gitgutter
|
|
||||||
let g:gitgutter_sign_allow_clobber = 0
|
|
|
@ -1,34 +0,0 @@
|
||||||
" If the format cannot be determined, use this.
|
|
||||||
let g:tex_flavor = 'latex'
|
|
||||||
let g:vimtex_view_method = 'zathura'
|
|
||||||
|
|
||||||
let g:vimtex_compiler_latexmk = {
|
|
||||||
\ 'executable' : 'latexmk',
|
|
||||||
\ 'options' : [
|
|
||||||
\ '-xelatex',
|
|
||||||
\ '-file-line-error',
|
|
||||||
\ '-synctex=1',
|
|
||||||
\ '-interaction=nonstopmode',
|
|
||||||
\ ],
|
|
||||||
\}
|
|
||||||
|
|
||||||
"let g:vimtex_compiler_latexmk = {
|
|
||||||
" \ 'backend' : 'nvim',
|
|
||||||
" \ 'background' : 1,
|
|
||||||
" \ 'build_dir' : '',
|
|
||||||
" \ 'callback' : 1,
|
|
||||||
" \ 'continuous' : 1,
|
|
||||||
" \ 'executable' : 'latexmk',
|
|
||||||
" \ 'hooks' : [],
|
|
||||||
" \ 'options' : [
|
|
||||||
" \ '-xelatex',
|
|
||||||
" \ '-verbose',
|
|
||||||
" \ '-file-line-error',
|
|
||||||
" \ '-synctex=1',
|
|
||||||
" \ '-interaction=nonstopmode',
|
|
||||||
" \ ],
|
|
||||||
" \}
|
|
||||||
|
|
||||||
"let g:vimtex_compiler_latexmk_engines = {
|
|
||||||
" \ '_' : '-xelatex',
|
|
||||||
" \}
|
|
13
install.sh
13
install.sh
|
@ -36,12 +36,6 @@ zshrc_source="${__dir}/${zshrc}"
|
||||||
zshrc_target="${HOME}/${zshrc}"
|
zshrc_target="${HOME}/${zshrc}"
|
||||||
zshrc_backup="${backup_dir}/${zshrc_name}"
|
zshrc_backup="${backup_dir}/${zshrc_name}"
|
||||||
|
|
||||||
ps1=".startup/ps1"
|
|
||||||
ps1_name="ps1"
|
|
||||||
ps1_source="${__dir}/${ps1}"
|
|
||||||
ps1_target="${HOME}/${ps1}"
|
|
||||||
ps1_backup="${backup_dir}/${ps1_name}"
|
|
||||||
|
|
||||||
profile=".profile"
|
profile=".profile"
|
||||||
profile_name="profile"
|
profile_name="profile"
|
||||||
profile_source="${__dir}/${profile}"
|
profile_source="${__dir}/${profile}"
|
||||||
|
@ -97,7 +91,7 @@ ssh_agent_target="${HOME}/${ssh_agent}"
|
||||||
ssh_agent_backup="${backup_dir}/${ssh_agent_name}"
|
ssh_agent_backup="${backup_dir}/${ssh_agent_name}"
|
||||||
|
|
||||||
function display_configs {
|
function display_configs {
|
||||||
echo 'Supported config targets: all, bashrc, zshrc, ps1, profile, i3, i3status, xresources, gitconfig, gitignore, alacritty, fontconfig, ssh_agent, nvim'
|
echo 'Supported config targets: all, bashrc, zshrc, profile, i3, i3status, xresources, gitconfig, gitignore, alacritty, fontconfig, ssh_agent, nvim'
|
||||||
}
|
}
|
||||||
|
|
||||||
function display_usage {
|
function display_usage {
|
||||||
|
@ -231,8 +225,8 @@ done
|
||||||
|
|
||||||
# Ensure the backup directory exists (if backups are requested).
|
# Ensure the backup directory exists (if backups are requested).
|
||||||
if $auto_backup; then
|
if $auto_backup; then
|
||||||
if [ ! -d $backup_dir ]; then
|
if [ ! -d "$backup_dir" ]; then
|
||||||
if `mkdir $backup_dir`; then
|
if eval mkdir "$backup_dir"; then
|
||||||
echo -e "${COLOR_NOTIFY}[Note]${NC} created '$backup_dir' to store dotfile backups."
|
echo -e "${COLOR_NOTIFY}[Note]${NC} created '$backup_dir' to store dotfile backups."
|
||||||
else
|
else
|
||||||
echo -e "${COLOR_ERROR}[Error]${NC} Failed to create backup directory '$backup_dir'."
|
echo -e "${COLOR_ERROR}[Error]${NC} Failed to create backup directory '$backup_dir'."
|
||||||
|
@ -243,7 +237,6 @@ fi
|
||||||
# Install all requested configurations.
|
# Install all requested configurations.
|
||||||
install_config "${bashrc_name}" "${bashrc_source}" "${bashrc_target}" "${bashrc_backup}"
|
install_config "${bashrc_name}" "${bashrc_source}" "${bashrc_target}" "${bashrc_backup}"
|
||||||
install_config "${zshrc_name}" "${zshrc_source}" "${zshrc_target}" "${zshrc_backup}"
|
install_config "${zshrc_name}" "${zshrc_source}" "${zshrc_target}" "${zshrc_backup}"
|
||||||
install_config "${ps1_name}" "${ps1_source}" "${ps1_target}" "${ps1_backup}"
|
|
||||||
install_config "${profile_name}" "${profile_source}" "${profile_target}" "${profile_backup}"
|
install_config "${profile_name}" "${profile_source}" "${profile_target}" "${profile_backup}"
|
||||||
install_config "${i3_name}" "${i3_source}" "${i3_target}" "${i3_backup}"
|
install_config "${i3_name}" "${i3_source}" "${i3_target}" "${i3_backup}"
|
||||||
install_config "${i3status_name}" "${i3status_source}" "${i3status_target}" "${i3status_backup}"
|
install_config "${i3status_name}" "${i3status_source}" "${i3status_target}" "${i3status_backup}"
|
||||||
|
|
|
@ -4,18 +4,16 @@ set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
mkdir $HOME/bin
|
mkdir "$HOME/bin"
|
||||||
mkdir $HOME/log
|
mkdir "$HOME/log"
|
||||||
mkdir $HOME/log/$USER
|
mkdir "$HOME/log/$USER"
|
||||||
mkdir $HOME/opt
|
mkdir "$HOME/opt"
|
||||||
mkdir $HOME/src
|
mkdir "$HOME/src"
|
||||||
mkdir -p $HOME/.dotfiles/backups
|
mkdir -p "$HOME/.dotfiles/backups"
|
||||||
mkdir -p $HOME/.config
|
mkdir -p "$HOME/.config"
|
||||||
mkdir -p $HOME/.config/alacritty
|
mkdir -p "$HOME/.config/alacritty"
|
||||||
mkdir -p $HOME/.config/fontconfig
|
mkdir -p "$HOME/.config/fontconfig"
|
||||||
mkdir -p $HOME/.config/i3
|
mkdir -p "$HOME/.config/i3"
|
||||||
mkdir -p $HOME/.config/i3status
|
mkdir -p "$HOME/.config/i3status"
|
||||||
mkdir -p $HOME/.config/nvim
|
mkdir -p "$HOME/.config/nvim"
|
||||||
mkdir -p $HOME/.startup
|
mkdir -p "$HOME/.startup"
|
||||||
mkdir -p $HOME/.local/share/nvim/site/ftplugin
|
|
||||||
mkdir -p $HOME/.local/share/nvim/site/plugin
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue