Compare commits
5 Commits
f18932a13a
...
master
Author | SHA1 | Date | |
---|---|---|---|
99e5c0b13e
|
|||
16c2a7fa30
|
|||
99001c45f5
|
|||
ac1fb7c56b
|
|||
5a1e041ce0
|
23
.bashrc
23
.bashrc
@ -49,17 +49,10 @@ HISTFILESIZE=$HISTSIZE
|
||||
HISTCONTROL=ignorespace:ignoredups
|
||||
shopt -s histappend
|
||||
|
||||
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
|
||||
|
||||
# OS specific environment
|
||||
#
|
||||
# This should be executed before the tools section, especially if we are using
|
||||
# tools from Homebrew
|
||||
case "$OSTYPE" in
|
||||
darwin*)
|
||||
# Homebrew
|
||||
@ -84,6 +77,16 @@ 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")")"
|
||||
|
@ -1 +0,0 @@
|
||||
newtext = green
|
@ -1,17 +1,17 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
@ -23,13 +23,13 @@ vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
return {
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
}
|
||||
|
@ -1,13 +1,13 @@
|
||||
return {
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
|
||||
-- basic telescope configuration
|
||||
local conf = require("telescope.config").values
|
||||
@ -17,27 +17,45 @@ return {
|
||||
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()
|
||||
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", "<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)
|
||||
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,
|
||||
-- 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 {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
opts = {
|
||||
},
|
||||
opts = {},
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ return {
|
||||
-- ruby = { "rubocop", "standardrb" },
|
||||
ruby = { "standardrb" },
|
||||
go = { "golangcilint" },
|
||||
}
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
|
@ -1,65 +1,65 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"ruby_lsp",
|
||||
-- "standardrb",
|
||||
"terraformls",
|
||||
"yamlls",
|
||||
"pyright",
|
||||
"zls",
|
||||
"gopls",
|
||||
"bashls",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"ruby_lsp",
|
||||
-- "standardrb",
|
||||
"terraformls",
|
||||
"yamlls",
|
||||
"pyright",
|
||||
"zls",
|
||||
"gopls",
|
||||
"bashls",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.zls.setup({})
|
||||
lspconfig.ruby_lsp.setup({
|
||||
init_options = {
|
||||
formatter = "standard",
|
||||
linters = { "standard" },
|
||||
}
|
||||
})
|
||||
-- lspconfig.standardrb.setup({})
|
||||
lspconfig.bashls.setup({})
|
||||
lspconfig.yamlls.setup({})
|
||||
lspconfig.terraformls.setup({})
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
format = {
|
||||
defaultConfig = {
|
||||
indent_style = "tabs",
|
||||
indent_size = "4",
|
||||
},
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
lspconfig.pyright.setup({})
|
||||
lspconfig.gopls.setup({})
|
||||
lspconfig.zls.setup({})
|
||||
end,
|
||||
},
|
||||
lspconfig.zls.setup({})
|
||||
lspconfig.ruby_lsp.setup({
|
||||
init_options = {
|
||||
formatter = "standard",
|
||||
linters = { "standard" },
|
||||
},
|
||||
})
|
||||
-- lspconfig.standardrb.setup({})
|
||||
lspconfig.bashls.setup({})
|
||||
lspconfig.yamlls.setup({})
|
||||
lspconfig.terraformls.setup({})
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
format = {
|
||||
defaultConfig = {
|
||||
indent_style = "tabs",
|
||||
indent_size = "4",
|
||||
},
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
lspconfig.pyright.setup({})
|
||||
lspconfig.gopls.setup({})
|
||||
lspconfig.zls.setup({})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
config = function()
|
||||
require("nvim-tree").setup()
|
||||
end
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
config = function()
|
||||
require("nvim-tree").setup()
|
||||
end,
|
||||
}
|
||||
|
@ -1,14 +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
|
||||
"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.wo.number = true
|
||||
vim.cmd.colorscheme "tokyonight"
|
||||
vim.cmd.colorscheme("tokyonight")
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
@ -1,7 +1,7 @@
|
||||
[user]
|
||||
name = Ryan Cavicchioni
|
||||
email = ryan@cavi.cc
|
||||
signingkey = /home/ryan/.ssh/id_ed25519.pub
|
||||
signingkey = ~/.ssh/id_ed25519.pub
|
||||
[color]
|
||||
ui = true
|
||||
[push]
|
||||
@ -17,7 +17,7 @@
|
||||
[log]
|
||||
showSignature = true
|
||||
[gpg "ssh"]
|
||||
allowedSignersFile = /home/ryan/.ssh/allowed_signers
|
||||
allowedSignersFile = ~/.ssh/allowed_signers
|
||||
[diff]
|
||||
tool = meld
|
||||
[difftool]
|
||||
|
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
|
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