Compare commits
30 Commits
6ecfaaf535
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
113c5405a8
|
|||
|
19f2d28bb3
|
|||
|
7d1fcf5bc9
|
|||
|
ff1c91dad8
|
|||
|
99e5c0b13e
|
|||
|
16c2a7fa30
|
|||
|
99001c45f5
|
|||
|
ac1fb7c56b
|
|||
|
5a1e041ce0
|
|||
|
f18932a13a
|
|||
|
007db7e0ce
|
|||
|
7bd940d717
|
|||
|
17766d4035
|
|||
|
c2cf5c3662
|
|||
|
4f03e7a041
|
|||
|
366dda66de
|
|||
|
6cba030e25
|
|||
|
5420660696
|
|||
|
41b29f360b
|
|||
|
65c05e3def
|
|||
|
c95f1347b1
|
|||
|
e3c8d39137
|
|||
|
64e7a9daad
|
|||
|
cf62d995c9
|
|||
|
f47198c20c
|
|||
|
24c9878ee7
|
|||
|
4c6de3bb04
|
|||
|
88bb17d41c
|
|||
|
64225eb276
|
|||
|
02852a7307
|
@@ -1,49 +0,0 @@
|
|||||||
# ~/.profile: executed by the command interpreter for login shells.
|
|
||||||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
|
||||||
# exists.
|
|
||||||
# see /usr/share/doc/bash/examples/startup-files for examples.
|
|
||||||
# the files are located in the bash-doc package.
|
|
||||||
|
|
||||||
# the default umask is set in /etc/profile; for setting the umask
|
|
||||||
# for ssh logins, install and configure the libpam-umask package.
|
|
||||||
#umask 022
|
|
||||||
|
|
||||||
# if running bash
|
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
|
||||||
# include .bashrc if it exists
|
|
||||||
if [ -f "$HOME/.bashrc" ]; then
|
|
||||||
. "$HOME/.bashrc"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# set PATH so it includes user's private bin if it exists
|
|
||||||
if [ -d "$HOME/bin" ] ; then
|
|
||||||
PATH="$HOME/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATH=/usr/local/bin:$PATH
|
|
||||||
|
|
||||||
if [ -e `which keychain` ]; then
|
|
||||||
# load SSH key
|
|
||||||
keychain --timeout 240 ~/.ssh/id_rsa
|
|
||||||
source ~/.keychain/$HOSTNAME-sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# some aliases
|
|
||||||
alias vi='vim'
|
|
||||||
alias ta='tmux attach'
|
|
||||||
alias ta2='tmux -2 attach'
|
|
||||||
alias ns='netstat -tulpn'
|
|
||||||
alias llh='ls -lh'
|
|
||||||
alias ll='ls -lp'
|
|
||||||
alias ls='ls -p'
|
|
||||||
|
|
||||||
# set 1337 h4x0r looking shell prompt
|
|
||||||
#PS1="\w > "
|
|
||||||
PS1='\[\e[1;32m\][\u@\h \w]\$\[\e[0m\] '
|
|
||||||
|
|
||||||
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator
|
|
||||||
|
|
||||||
export EDITOR=vim
|
|
||||||
|
|
||||||
source /usr/local/share/chruby/chruby.sh
|
|
||||||
110
.bashrc
Normal file
110
.bashrc
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
# Source global definitions
|
||||||
|
if [ -f /etc/bashrc ]; then
|
||||||
|
. /etc/bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
function log() {
|
||||||
|
if [[ -v "$VERBOSE" ]]; then
|
||||||
|
echo "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function success() {
|
||||||
|
log "✅ ${1}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function warn() {
|
||||||
|
log "⚠️ ${1}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run systemd generators
|
||||||
|
if [[ -f /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator ]]; then
|
||||||
|
set -o allexport
|
||||||
|
# shellcheck disable=1090
|
||||||
|
source <(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
|
||||||
|
set +o allexport
|
||||||
|
fi
|
||||||
|
|
||||||
|
# User specific environment
|
||||||
|
if ! [[ "$PATH" =~ $HOME/.local/bin:$HOME/bin: ]]; then
|
||||||
|
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
if ! [[ "$PATH" =~ /usr/local/go/bin ]]; then
|
||||||
|
PATH="/usr/local/go/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# User specific aliases and functions
|
||||||
|
if [ -d ~/.bashrc.d ]; then
|
||||||
|
for rc in ~/.bashrc.d/*; do
|
||||||
|
if [ -f "$rc" ]; then
|
||||||
|
# shellcheck disable=1090
|
||||||
|
. "$rc"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
unset rc
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
|
||||||
|
# history control
|
||||||
|
HISTSIZE=10000
|
||||||
|
HISTFILESIZE=$HISTSIZE
|
||||||
|
HISTCONTROL=ignorespace:ignoredups
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# OS specific environment
|
||||||
|
#
|
||||||
|
# This should be executed before the tools section, especially if we are using
|
||||||
|
# tools from Homebrew
|
||||||
|
case "$OSTYPE" in
|
||||||
|
darwin*)
|
||||||
|
# Homebrew
|
||||||
|
if [[ -f /opt/homebrew/bin/brew ]]; then
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
success "set up homebrew"
|
||||||
|
else
|
||||||
|
warn "homebrew not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ruby
|
||||||
|
if [[ -d /opt/homebrew/opt/ruby ]]; then
|
||||||
|
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||||
|
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib"
|
||||||
|
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
|
||||||
|
success "set up homebrew ruby"
|
||||||
|
else
|
||||||
|
warn "homebrew ruby not found"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
|
||||||
|
if command -v nvim > /dev/null; then
|
||||||
|
success "setting EDITOR to nvim"
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
||||||
|
success "setting MANPAGER viewer to nvim"
|
||||||
|
export MANPAGER="nvim +Man!"
|
||||||
|
else
|
||||||
|
warn "nvim not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# fzf
|
||||||
|
if command -v fzf > /dev/null; then
|
||||||
|
eval "$(fzf "--$(basename "$SHELL")")"
|
||||||
|
success "set up fzf"
|
||||||
|
else
|
||||||
|
warn "fzf not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# starship
|
||||||
|
if command -v starship > /dev/null; then
|
||||||
|
eval "$(starship init "$(basename "$SHELL")")"
|
||||||
|
success "set up starship"
|
||||||
|
else
|
||||||
|
warn "starship not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
alias nview="nvim -R"
|
||||||
@@ -1 +0,0 @@
|
|||||||
newtext = green
|
|
||||||
@@ -1,40 +1,48 @@
|
|||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "b84eeb3641b08324287587b426ec974b888390d9" },
|
"LuaSnip": { "branch": "master", "commit": "73813308abc2eaeff2bc0d3f2f79270c491be9d7" },
|
||||||
"catppuccin": { "branch": "main", "commit": "05206bbb6d500a339cd55a9486532c3871a4455e" },
|
"catppuccin": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "0f4f299dfea09d2adfd7a1da05149a0844ac8eee" },
|
"conform.nvim": { "branch": "master", "commit": "9d859cbfbde7a1bd1770e7c97aef30ec5a237a71" },
|
||||||
"everforest-nvim": { "branch": "main", "commit": "2c40c11b971da120796564e69aecce7e7c82a854" },
|
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" },
|
"everforest-nvim": { "branch": "main", "commit": "d2936185a6d266def29fd7b523d296384580ef08" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "562dc47189ad3c8696dbf460d38603a74d544849" },
|
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "7a1b23e4edf73a39642e77508ee6b9cbb8c60f9e" },
|
"fzf-lua": { "branch": "main", "commit": "478869cf8c4b4354771c27b6b8e9f985cb274de2" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "dddb5d21811c319eb6e51a993d8fb44b193aae3f" },
|
"gitsigns.nvim": { "branch": "main", "commit": "1ee5c1fd068c81f9dd06483e639c2aa4587dc197" },
|
||||||
"kanagawa.nvim": { "branch": "master", "commit": "e5f7b8a804360f0a48e40d0083a97193ee4fcc87" },
|
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "544dd1583f9bb27b393f598475c89809c4d5e86b" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "62360f061d45177dda8afc1b0fd1327328540301" },
|
"kanagawa.nvim": { "branch": "master", "commit": "27f1e119f3a7e6d11d435a59e3262e6affda1f83" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
"lazy.nvim": { "branch": "main", "commit": "59334064f8604ca073791c25dcc5c9698865406e" },
|
||||||
"mini.icons": { "branch": "main", "commit": "fe63fe080e76d80713557e5f0c65bc15b14b152d" },
|
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
||||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" },
|
"lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
|
||||||
"nightfox.nvim": { "branch": "main", "commit": "d3e8b1acc095baf57af81bb5e89fe7c4359eb619" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "155eac5d8609a2f110041f8ac3491664cc126354" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "284798619aed9f4c1ac1b9417b9a5e3b4b85ef3a" },
|
||||||
|
"mini.pick": { "branch": "main", "commit": "96ee37d07043aeed90ae6ae32733b2d0db8f1c13" },
|
||||||
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "9130e58424ad95bf2dd8b40afbb8cf04d648638c" },
|
||||||
|
"neogit": { "branch": "master", "commit": "90dcfa7b2bd5f3f35d1a7afe24dde9e2bc482cd4" },
|
||||||
|
"nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
||||||
"nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
|
"nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "906cd0012be2acbf98de87a3c25154abe7da0478" },
|
"nvim-lint": { "branch": "master", "commit": "335a6044be16d7701001059cba9baa36fbeef422" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "652386deae739e38fa1bcf2f06e3e7de9b3436ba" },
|
"nvim-lspconfig": { "branch": "master", "commit": "e688b486fe9291f151eae7e5c0b5a5c4ef980847" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
|
"nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "48d0e82f9434691cc50d970898142a8c084a49d6" },
|
"nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "a8535b2329a082c7f4e0b11b91b1792770425eaa" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
|
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "fcca212c2e966fc3dec1d4baf888e670631d25d1" },
|
"oil.nvim": { "branch": "master", "commit": "919e155fdf38e9148cdb5304faaaf53c20d703ea" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"rose-pine": { "branch": "main", "commit": "1e45cea06db866143930a6df96fc66bf715c866c" },
|
"rose-pine": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" },
|
||||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "b0e7c7382a7e8f6456f2a95655983993ffda745e" },
|
"tokyonight.nvim": { "branch": "main", "commit": "4d159616aee17796c2c94d2f5f87d2ee1a3f67c7" },
|
||||||
"trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" },
|
"trouble.nvim": { "branch": "main", "commit": "f176232e7759c4f8abd923c21e3e5a5c76cd6837" },
|
||||||
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
"twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "0444df68cd1cdabc7453d6bd84099458327e5513" }
|
"undotree": { "branch": "master", "commit": "0f1c9816975b5d7f87d5003a19c53c6fd2ff6f7f" },
|
||||||
|
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
||||||
|
"zenbones.nvim": { "branch": "main", "commit": "a934bc07d2ed4a98b74526c172d7f043736d8935" }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,23 @@
|
|||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
event = { "BufWritePre" },
|
||||||
|
cmd = { "ConformInfo" },
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>f",
|
||||||
|
|
||||||
|
function()
|
||||||
|
require("conform").format({ async = true })
|
||||||
|
end,
|
||||||
|
mode = "",
|
||||||
|
desc = "Format buffer",
|
||||||
|
},
|
||||||
|
},
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
|
ruby = { "rufo" },
|
||||||
|
go = { "gofmt" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
1
.config/nvim/lua/plugins/diffview.lua
Normal file
1
.config/nvim/lua/plugins/diffview.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { "sindrets/diffview.nvim" }
|
||||||
61
.config/nvim/lua/plugins/harpoon.lua
Normal file
61
.config/nvim/lua/plugins/harpoon.lua
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
return {
|
||||||
|
"ThePrimeagen/harpoon",
|
||||||
|
branch = "harpoon2",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function()
|
||||||
|
local harpoon = require("harpoon")
|
||||||
|
|
||||||
|
-- REQUIRED
|
||||||
|
harpoon:setup()
|
||||||
|
-- REQUIRED
|
||||||
|
|
||||||
|
-- basic telescope configuration
|
||||||
|
local conf = require("telescope.config").values
|
||||||
|
local function toggle_telescope(harpoon_files)
|
||||||
|
local file_paths = {}
|
||||||
|
for _, item in ipairs(harpoon_files.items) do
|
||||||
|
table.insert(file_paths, item.value)
|
||||||
|
end
|
||||||
|
|
||||||
|
require("telescope.pickers")
|
||||||
|
.new({}, {
|
||||||
|
prompt_title = "Harpoon",
|
||||||
|
finder = require("telescope.finders").new_table({
|
||||||
|
results = file_paths,
|
||||||
|
}),
|
||||||
|
previewer = conf.file_previewer({}),
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
})
|
||||||
|
:find()
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>a", function()
|
||||||
|
harpoon:list():add()
|
||||||
|
end)
|
||||||
|
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
|
vim.keymap.set("n", "<C-e>", function()
|
||||||
|
toggle_telescope(harpoon:list())
|
||||||
|
end, { desc = "Open harpoon window" })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-h>", function()
|
||||||
|
harpoon:list():select(1)
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-t>", function()
|
||||||
|
harpoon:list():select(2)
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-n>", function()
|
||||||
|
harpoon:list():select(3)
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-s>", function()
|
||||||
|
harpoon:list():select(4)
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Toggle previous & next buffers stored within Harpoon list
|
||||||
|
vim.keymap.set("n", "<C-S-P>", function()
|
||||||
|
harpoon:list():prev()
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-S-N>", function()
|
||||||
|
harpoon:list():next()
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
opts = {
|
opts = {},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,25 @@
|
|||||||
return {
|
return {
|
||||||
"mfussenegger/nvim-lint",
|
"mfussenegger/nvim-lint",
|
||||||
|
opts = {
|
||||||
|
linters_by_ft = {
|
||||||
|
-- ruby = { "rubocop", "standardrb" },
|
||||||
|
ruby = { "standardrb" },
|
||||||
|
go = { "golangcilint" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local lint = require("lint")
|
||||||
|
|
||||||
|
lint.linters_by_ft = {
|
||||||
|
-- ruby = { "rubocop", "standardrb" },
|
||||||
|
ruby = { "standardrb" },
|
||||||
|
go = { "golangcilint" },
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
|
callback = function()
|
||||||
|
lint.try_lint()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
dependencies = { "williamboman/mason.nvim" },
|
dependencies = { "mason-org/mason.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ruby_lsp",
|
"ruby_lsp",
|
||||||
"standardrb",
|
-- "standardrb",
|
||||||
"terraformls",
|
"terraformls",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
|
"pyright",
|
||||||
|
"zls",
|
||||||
|
"gopls",
|
||||||
|
"golangci_lint_ls",
|
||||||
|
"bashls",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
dependencies = { "mason-org/mason-lspconfig.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
vim.lsp.config("lua_ls", {
|
||||||
|
|
||||||
lspconfig.ruby_lsp.setup({})
|
|
||||||
lspconfig.standardrb.setup({})
|
|
||||||
lspconfig.bashls.setup({})
|
|
||||||
lspconfig.yamlls.setup({})
|
|
||||||
lspconfig.terraformls.setup({})
|
|
||||||
lspconfig.lua_ls.setup({
|
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
@@ -47,6 +45,24 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.config("ruby_lsp", {
|
||||||
|
init_options = {
|
||||||
|
formatter = "standard",
|
||||||
|
linters = { "standard" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable("bashls")
|
||||||
|
vim.lsp.enable("golangci_lint_ls")
|
||||||
|
vim.lsp.enable("lua_ls")
|
||||||
|
vim.lsp.enable("pyright")
|
||||||
|
vim.lsp.enable("ruby_lsp")
|
||||||
|
vim.lsp.enable("terraformls")
|
||||||
|
vim.lsp.enable("yamlls")
|
||||||
|
vim.lsp.enable("zls")
|
||||||
|
|
||||||
|
-- vim.lsp.enable("standardrb")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
13
.config/nvim/lua/plugins/neogit.lua
Normal file
13
.config/nvim/lua/plugins/neogit.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
"NeogitOrg/neogit",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim", -- required
|
||||||
|
"sindrets/diffview.nvim", -- optional - Diff integration
|
||||||
|
|
||||||
|
-- Only one of these is needed.
|
||||||
|
"nvim-telescope/telescope.nvim", -- optional
|
||||||
|
"ibhagwan/fzf-lua", -- optional
|
||||||
|
"echasnovski/mini.pick", -- optional
|
||||||
|
},
|
||||||
|
config = true,
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@ return {
|
|||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
3
.config/nvim/lua/plugins/twilight.lua
Normal file
3
.config/nvim/lua/plugins/twilight.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
"folke/twilight.nvim",
|
||||||
|
}
|
||||||
14
.config/nvim/lua/plugins/zenbones.lua
Normal file
14
.config/nvim/lua/plugins/zenbones.lua
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
return {
|
||||||
|
"zenbones-theme/zenbones.nvim",
|
||||||
|
-- Optionally install Lush. Allows for more configuration or extending the colorscheme
|
||||||
|
-- If you don't want to install lush, make sure to set g:zenbones_compat = 1
|
||||||
|
-- In Vim, compat mode is turned on as Lush only works in Neovim.
|
||||||
|
dependencies = "rktjmp/lush.nvim",
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
-- you can set set configuration options here
|
||||||
|
-- config = function()
|
||||||
|
-- vim.g.zenbones_darken_comments = 45
|
||||||
|
-- vim.cmd.colorscheme('zenbones')
|
||||||
|
-- end
|
||||||
|
}
|
||||||
@@ -5,6 +5,6 @@ vim.cmd("set shiftwidth=4")
|
|||||||
vim.cmd("set smartindent")
|
vim.cmd("set smartindent")
|
||||||
|
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
vim.cmd.colorscheme "tokyonight"
|
vim.cmd.colorscheme("tokyonight")
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
|||||||
33
.gitconfig
33
.gitconfig
@@ -1,29 +1,26 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Ryan Cavicchioni
|
name = Ryan Cavicchioni
|
||||||
email = ryan@cavi.cc
|
email = ryan@cavi.cc
|
||||||
|
signingkey = ~/.ssh/id_ed25519.pub
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
[log]
|
[pull]
|
||||||
showsignature = true
|
ff = only
|
||||||
[core]
|
[gpg]
|
||||||
pager = delta
|
format = ssh
|
||||||
|
|
||||||
[interactive]
|
|
||||||
diffFilter = delta --color-only
|
|
||||||
|
|
||||||
[delta]
|
|
||||||
navigate = true # use n and N to move between diff sections
|
|
||||||
|
|
||||||
# delta detects terminal colors automatically; set one of these to disable auto-detection
|
|
||||||
# dark = true
|
|
||||||
# light = true
|
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
conflictstyle = diff3
|
conflictstyle = zdiff3
|
||||||
|
[log]
|
||||||
|
showSignature = true
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = ~/.ssh/allowed_signers
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = default
|
tool = meld
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
[difftool "meld"]
|
||||||
|
cmd = meld "$LOCAL" "$REMOTE"
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +0,0 @@
|
|||||||
!.vim/bundle/Vundle.vim
|
|
||||||
.vim/bundle/*
|
|
||||||
.vim/swp/*
|
|
||||||
0
.gitmodules
vendored
0
.gitmodules
vendored
3
.hgrc
3
.hgrc
@@ -1,3 +0,0 @@
|
|||||||
[ui]
|
|
||||||
username = Ryan Cavicchioni <ryan@confabulator.net>
|
|
||||||
editor = vim
|
|
||||||
38
.profile
38
.profile
@@ -1,44 +1,8 @@
|
|||||||
# ~/.profile: executed by the command interpreter for login shells.
|
|
||||||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
|
||||||
# exists.
|
|
||||||
# see /usr/share/doc/bash/examples/startup-files for examples.
|
|
||||||
# the files are located in the bash-doc package.
|
|
||||||
|
|
||||||
# the default umask is set in /etc/profile; for setting the umask
|
|
||||||
# for ssh logins, install and configure the libpam-umask package.
|
|
||||||
#umask 022
|
|
||||||
|
|
||||||
# if running bash
|
# if running bash
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
# include .bashrc if it exists
|
# include .bashrc if it exists
|
||||||
if [ -f "$HOME/.bashrc" ]; then
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
|
# shellcheck disable=SC1090
|
||||||
. "$HOME/.bashrc"
|
. "$HOME/.bashrc"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set PATH so it includes user's private bin directories
|
|
||||||
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
|
|
||||||
|
|
||||||
export EDITOR=vim
|
|
||||||
export GPG_TTY=$(tty)
|
|
||||||
|
|
||||||
if [ ! -e /run/systemd/system ]; then
|
|
||||||
SSH_ENV="${HOME}/.ssh/env"
|
|
||||||
|
|
||||||
function start_ssh_agent {
|
|
||||||
ssh-agent | sed -e '/^echo/d' > "${SSH_ENV}"
|
|
||||||
chmod 0600 "${SSH_ENV}"
|
|
||||||
. "${SSH_ENV}"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -f "${SSH_ENV}" ]; then
|
|
||||||
. "${SSH_ENV}"
|
|
||||||
if ! kill -0 "${SSH_AGENT_PID}" > /dev/null 2>&1; then
|
|
||||||
start_ssh_agent
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
start_ssh_agent
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
|
||||||
fi
|
|
||||||
|
|||||||
4
.ssh/allowed_signers
Normal file
4
.ssh/allowed_signers
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
ryan@cavi.cc namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGznaofIstAxYsX1MH8xQiZU4aOO4SUw9OlRbyFMfQTx compy386
|
||||||
|
ryan@cavi.cc namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICndorpp/6aKlLq2K1YP81r8zA80VGp1qAUeCZtdVhAw lappy486
|
||||||
|
rcavicchioni@gmail.com namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGznaofIstAxYsX1MH8xQiZU4aOO4SUw9OlRbyFMfQTx compy386
|
||||||
|
rcavicchioni@gmail.com namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICndorpp/6aKlLq2K1YP81r8zA80VGp1qAUeCZtdVhAw lappy486
|
||||||
28
Makefile
28
Makefile
@@ -1,28 +0,0 @@
|
|||||||
install: install-vim install-git install-bash install-colordiff install-hg \
|
|
||||||
install-mutt
|
|
||||||
|
|
||||||
install-vim:
|
|
||||||
rm -rf ~/.vim ~/.vimrc
|
|
||||||
ln -s `pwd`/.vim ~/.vim
|
|
||||||
ln -s ~/.vim/vimrc ~/.vimrc
|
|
||||||
|
|
||||||
install-git:
|
|
||||||
rm -f ~/.gitconfig
|
|
||||||
ln -s `pwd`/.gitconfig ~/.gitconfig
|
|
||||||
|
|
||||||
install-bash:
|
|
||||||
rm -f ~/.bash_profile ~/.inputrc
|
|
||||||
ln -s `pwd`/.bash_profile ~/.bash_profile
|
|
||||||
ln -s `pwd`/.inputrc ~/.inputrc
|
|
||||||
|
|
||||||
install-colordiff:
|
|
||||||
rm -f ~/.colordiffrc
|
|
||||||
ln -s `pwd`/.colordiffrc ~/.colordiffrc
|
|
||||||
|
|
||||||
install-hg:
|
|
||||||
rm -f ~/.hgrc
|
|
||||||
ln -s `pwd`/.hgrc ~/.hgrc
|
|
||||||
|
|
||||||
install-mutt:
|
|
||||||
rm -f ~/.muttrc
|
|
||||||
ln -s `pwd`/.muttrc ~/.muttrc
|
|
||||||
Reference in New Issue
Block a user