mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-05 13:40:18 -05:00
More stuff
This commit is contained in:
177
.config/lvim/config.lua
Normal file
177
.config/lvim/config.lua
Normal file
@@ -0,0 +1,177 @@
|
||||
--[[
|
||||
lvim is the global options object
|
||||
|
||||
Linters should be
|
||||
filled in as strings with either
|
||||
a global executable or a path to
|
||||
an executable
|
||||
]]
|
||||
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
|
||||
|
||||
-- general
|
||||
lvim.log.level = "warn"
|
||||
lvim.format_on_save = true
|
||||
lvim.colorscheme = "onedarker"
|
||||
|
||||
-- keymappings [view all the defaults by pressing <leader>Lk]
|
||||
lvim.leader = "space"
|
||||
-- add your own keymapping
|
||||
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|
||||
|
||||
-- unmap a default keymapping
|
||||
-- lvim.keys.normal_mode["<C-Up>"] = ""
|
||||
-- edit a default keymapping
|
||||
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
|
||||
|
||||
-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
|
||||
-- lvim.builtin.telescope.on_config_done = function()
|
||||
-- local actions = require "telescope.actions"
|
||||
-- -- for input mode
|
||||
-- lvim.builtin.telescope.defaults.mappings.i["<C-j>"] = actions.move_selection_next
|
||||
-- lvim.builtin.telescope.defaults.mappings.i["<C-n>"] = actions.cycle_history_next
|
||||
-- lvim.builtin.telescope.defaults.mappings.i["<C-k>"] = actions.move_selection_previous
|
||||
-- lvim.builtin.telescope.defaults.mappings.i["<C-p>"] = actions.cycle_history_prev
|
||||
-- -- for normal mode
|
||||
-- lvim.builtin.telescope.defaults.mappings.n["<C-j>"] = actions.move_selection_next
|
||||
-- lvim.builtin.telescope.defaults.mappings.n["<C-k>"] = actions.move_selection_previous
|
||||
-- end
|
||||
|
||||
-- Use which-key to add extra bindings with the leader-key prefix
|
||||
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>Telescope projects<CR>", "Projects" }
|
||||
-- lvim.builtin.which_key.mappings["t"] = {
|
||||
-- name = "+Trouble",
|
||||
-- r = { "<cmd>Trouble lsp_references<cr>", "References" },
|
||||
-- f = { "<cmd>Trouble lsp_definitions<cr>", "Definitions" },
|
||||
-- d = { "<cmd>Trouble lsp_document_diagnostics<cr>", "Diagnostics" },
|
||||
-- q = { "<cmd>Trouble quickfix<cr>", "QuickFix" },
|
||||
-- l = { "<cmd>Trouble loclist<cr>", "LocationList" },
|
||||
-- w = { "<cmd>Trouble lsp_workspace_diagnostics<cr>", "Diagnostics" },
|
||||
-- }
|
||||
|
||||
-- TODO: User Config for predefined plugins
|
||||
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
||||
lvim.builtin.dashboard.active = true
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.lualine.active = true
|
||||
lvim.builtin.dap.active = true
|
||||
-- lvim.builtin.bufferline = true
|
||||
lvim.builtin.nvimtree.side = "left"
|
||||
lvim.builtin.nvimtree.show_icons.git = 1
|
||||
|
||||
-- if you don't want all the parsers change this to a table of the ones you want
|
||||
lvim.builtin.treesitter.ensure_installed = "maintained"
|
||||
lvim.builtin.treesitter.ignore_install = { "haskell" }
|
||||
lvim.builtin.treesitter.highlight.enabled = true
|
||||
|
||||
-- generic LSP settings
|
||||
-- you can set a custom on_attach function that will be used for all the language servers
|
||||
-- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
|
||||
-- lvim.lsp.on_attach_callback = function(client, bufnr)
|
||||
-- local function buf_set_option(...)
|
||||
-- vim.api.nvim_buf_set_option(bufnr, ...)
|
||||
-- end
|
||||
-- --Enable completion triggered by <c-x><c-o>
|
||||
-- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||
-- end
|
||||
-- you can overwrite the null_ls setup table (useful for setting the root_dir function)
|
||||
-- lvim.lsp.null_ls.setup = {
|
||||
-- root_dir = require("lspconfig").util.root_pattern("Makefile", ".git", "node_modules"),
|
||||
-- }
|
||||
-- or if you need something more advanced
|
||||
-- lvim.lsp.null_ls.setup.root_dir = function(fname)
|
||||
-- if vim.bo.filetype == "javascript" then
|
||||
-- return require("lspconfig/util").root_pattern("Makefile", ".git", "node_modules")(fname)
|
||||
-- or require("lspconfig/util").path.dirname(fname)
|
||||
-- elseif vim.bo.filetype == "php" then
|
||||
-- return require("lspconfig/util").root_pattern("Makefile", ".git", "composer.json")(fname) or vim.fn.getcwd()
|
||||
-- else
|
||||
-- return require("lspconfig/util").root_pattern("Makefile", ".git")(fname) or require("lspconfig/util").path.dirname(fname)
|
||||
-- end
|
||||
-- end
|
||||
|
||||
-- set a formatter if you want to override the default lsp one (if it exists)
|
||||
-- lvim.lang.python.formatters = {
|
||||
-- {
|
||||
-- exe = "black",
|
||||
-- }
|
||||
-- }
|
||||
-- set an additional linter
|
||||
-- lvim.lang.python.linters = {
|
||||
-- {
|
||||
-- exe = "flake8",
|
||||
-- }
|
||||
-- }
|
||||
|
||||
vim.cmd("set timeoutlen=500")
|
||||
|
||||
-- Additional Plugins
|
||||
lvim.plugins = {
|
||||
{
|
||||
"p00f/nvim-ts-rainbow",
|
||||
},
|
||||
{ "tpope/vim-repeat" },
|
||||
{
|
||||
"tpope/vim-surround",
|
||||
keys = {"c", "d", "y"}
|
||||
},
|
||||
{
|
||||
"metakirby5/codi.vim",
|
||||
cmd = "Codi",
|
||||
},
|
||||
{
|
||||
"monaqa/dial.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
local dial = require "dial"
|
||||
vim.cmd [[
|
||||
nmap <C-a> <Plug>(dial-increment)
|
||||
nmap <C-x> <Plug>(dial-decrement)
|
||||
vmap <C-a> <Plug>(dial-increment)
|
||||
vmap <C-x> <Plug>(dial-decrement)
|
||||
vmap g<C-a> <Plug>(dial-increment-additional)
|
||||
vmap g<C-x> <Plug>(dial-decrement-additional)
|
||||
]]
|
||||
|
||||
dial.augends["custom#boolean"] = dial.common.enum_cyclic {
|
||||
name = "boolean",
|
||||
strlist = { "true", "false" },
|
||||
}
|
||||
table.insert(dial.config.searchlist.normal, "custom#boolean")
|
||||
|
||||
-- For Languages which prefer True/False, e.g. python.
|
||||
dial.augends["custom#Boolean"] = dial.common.enum_cyclic {
|
||||
name = "Boolean",
|
||||
strlist = { "True", "False" },
|
||||
}
|
||||
table.insert(dial.config.searchlist.normal, "custom#Boolean")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"phaazon/hop.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("hop").setup()
|
||||
vim.api.nvim_set_keymap("n", "s", ":HopChar2<cr>", { silent = true })
|
||||
vim.api.nvim_set_keymap("n", "S", ":HopWord<cr>", { silent = true })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
|
||||
-- lvim.autocommands.custom_groups = {
|
||||
-- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
|
||||
-- }
|
||||
|
||||
-- Typescript/javascript
|
||||
lvim.lang.typescript.formatters = { { exe = "eslint"}, { exe = "prettier" } }
|
||||
lvim.lang.typescriptreact.formatters = lvim.lang.typescript.formatters
|
||||
lvim.lang.typescript.linters = { { exe = "eslint" } }
|
||||
lvim.lang.typescriptreact.linters = lvim.lang.typescript.linters
|
||||
lvim.lang.javascript.formatters = { { exe = "eslint"}, { exe = "prettier" } }
|
||||
lvim.lang.javascriptreact.formatters = lvim.lang.javascript.formatters
|
||||
lvim.lang.javascript.linters = { { exe = "eslint" } }
|
||||
lvim.lang.javascriptreact.linters = lvim.lang.javascript.linters
|
||||
|
||||
-- JSON
|
||||
lvim.lang.json.formatters = { { exe = "prettier" } }
|
||||
|
||||
0
.config/lvim/ignore
Normal file
0
.config/lvim/ignore
Normal file
296
.config/lvim/plugin/packer_compiled.lua
Normal file
296
.config/lvim/plugin/packer_compiled.lua
Normal file
@@ -0,0 +1,296 @@
|
||||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/Users/wizehive/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/wizehive/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/wizehive/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/wizehive/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/Users/wizehive/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s))
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["DAPInstall.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/DAPInstall.nvim"
|
||||
},
|
||||
["FixCursorHold.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/FixCursorHold.nvim"
|
||||
},
|
||||
["barbar.nvim"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20core.bufferline\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/barbar.nvim"
|
||||
},
|
||||
["codi.vim"] = {
|
||||
commands = { "Codi" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/codi.vim"
|
||||
},
|
||||
["dashboard-nvim"] = {
|
||||
config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19core.dashboard\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/dashboard-nvim"
|
||||
},
|
||||
["dial.nvim"] = {
|
||||
config = { "\27LJ\2\nõ\4\0\0\6\0\20\0&6\0\0\0'\2\1\0B\0\2\0026\1\2\0009\1\3\1'\3\4\0B\1\2\0019\1\5\0009\2\a\0009\2\b\0025\4\t\0005\5\n\0=\5\v\4B\2\2\2=\2\6\0016\1\f\0009\1\r\0019\3\14\0009\3\15\0039\3\16\3'\4\6\0B\1\3\0019\1\5\0009\2\a\0009\2\b\0025\4\18\0005\5\19\0=\5\v\4B\2\2\2=\2\17\0016\1\f\0009\1\r\0019\3\14\0009\3\15\0039\3\16\3'\4\17\0B\1\3\1K\0\1\0\1\3\0\0\tTrue\nFalse\1\0\1\tname\fBoolean\19custom#Boolean\vnormal\15searchlist\vconfig\vinsert\ntable\fstrlist\1\3\0\0\ttrue\nfalse\1\0\1\tname\fboolean\16enum_cyclic\vcommon\19custom#boolean\faugendsŸ\2 nmap <C-a> <Plug>(dial-increment)\n nmap <C-x> <Plug>(dial-decrement)\n vmap <C-a> <Plug>(dial-increment)\n vmap <C-x> <Plug>(dial-decrement)\n vmap g<C-a> <Plug>(dial-increment-additional)\n vmap g<C-x> <Plug>(dial-decrement-additional)\n \bcmd\bvim\tdial\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/dial.nvim"
|
||||
},
|
||||
["friendly-snippets"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/friendly-snippets"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18core.gitsigns\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/gitsigns.nvim"
|
||||
},
|
||||
["hop.nvim"] = {
|
||||
config = { "\27LJ\2\nÀ\1\0\0\6\0\r\0\0226\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\3\0009\0\4\0009\0\5\0'\2\6\0'\3\a\0'\4\b\0005\5\t\0B\0\5\0016\0\3\0009\0\4\0009\0\5\0'\2\6\0'\3\n\0'\4\v\0005\5\f\0B\0\5\1K\0\1\0\1\0\1\vsilent\2\17:HopWord<cr>\6S\1\0\1\vsilent\2\18:HopChar2<cr>\6s\6n\20nvim_set_keymap\bapi\bvim\nsetup\bhop\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/hop.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
config = { "\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17core.lualine\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/lualine.nvim"
|
||||
},
|
||||
["nlsp-settings.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nlsp-settings.nvim"
|
||||
},
|
||||
["null-ls.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/null-ls.nvim"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19core.autopairs\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-compe"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-autopairs"
|
||||
},
|
||||
["nvim-comment"] = {
|
||||
config = { "\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17core.comment\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-comment"
|
||||
},
|
||||
["nvim-compe"] = {
|
||||
after = { "nvim-autopairs" },
|
||||
after_files = { "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-compe/after/plugin/compe.vim" },
|
||||
config = { "\27LJ\2\n8\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\15core.compe\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-compe"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
config = { "\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rcore.dap\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-dap"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-lspconfig"
|
||||
},
|
||||
["nvim-lspinstall"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\1\2\0B\1\1\1K\0\1\0\nsetup\20core.lspinstall\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-lspinstall"
|
||||
},
|
||||
["nvim-toggleterm.lua"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18core.terminal\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/nvim-toggleterm.lua"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18core.nvimtree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20core.treesitter\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-treesitter"
|
||||
},
|
||||
["nvim-ts-rainbow"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-ts-rainbow"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/packer.nvim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/plenary.nvim"
|
||||
},
|
||||
["popup.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/popup.nvim"
|
||||
},
|
||||
["project.nvim"] = {
|
||||
config = { "\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17core.project\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/project.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19core.telescope\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/telescope.nvim"
|
||||
},
|
||||
["vim-repeat"] = {
|
||||
loaded = true,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/start/vim-repeat"
|
||||
},
|
||||
["vim-surround"] = {
|
||||
keys = { { "", "c" }, { "", "d" }, { "", "y" } },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/vim-surround"
|
||||
},
|
||||
["vim-vsnip"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/vim-vsnip"
|
||||
},
|
||||
["which-key.nvim"] = {
|
||||
config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19core.which-key\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/wizehive/.local/share/lunarvim/site/pack/packer/opt/which-key.nvim"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17core.lualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: project.nvim
|
||||
time([[Config for project.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17core.project\frequire\0", "config", "project.nvim")
|
||||
time([[Config for project.nvim]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18core.nvimtree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: nvim-dap
|
||||
time([[Config for nvim-dap]], true)
|
||||
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rcore.dap\frequire\0", "config", "nvim-dap")
|
||||
time([[Config for nvim-dap]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20core.treesitter\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19core.telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
|
||||
-- Command lazy-loads
|
||||
time([[Defining lazy-load commands]], true)
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Codi lua require("packer.load")({'codi.vim'}, { cmd = "Codi", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
time([[Defining lazy-load commands]], false)
|
||||
|
||||
-- Keymap lazy-loads
|
||||
time([[Defining lazy-load keymaps]], true)
|
||||
vim.cmd [[noremap <silent> y <cmd>lua require("packer.load")({'vim-surround'}, { keys = "y", prefix = "" }, _G.packer_plugins)<cr>]]
|
||||
vim.cmd [[noremap <silent> c <cmd>lua require("packer.load")({'vim-surround'}, { keys = "c", prefix = "" }, _G.packer_plugins)<cr>]]
|
||||
vim.cmd [[noremap <silent> d <cmd>lua require("packer.load")({'vim-surround'}, { keys = "d", prefix = "" }, _G.packer_plugins)<cr>]]
|
||||
time([[Defining lazy-load keymaps]], false)
|
||||
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'nvim-compe', 'vim-vsnip'}, { event = "InsertEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'nvim-toggleterm.lua', 'which-key.nvim', 'barbar.nvim', 'dashboard-nvim'}, { event = "BufWinEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au InsertCharPre * ++once lua require("packer.load")({'friendly-snippets'}, { event = "InsertCharPre *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au VimEnter * ++once lua require("packer.load")({'nvim-lspinstall'}, { event = "VimEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'gitsigns.nvim', 'hop.nvim', 'nvim-comment', 'dial.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
||||
1
.config/zsh/brew.zsh##os.Darwin
Normal file
1
.config/zsh/brew.zsh##os.Darwin
Normal file
@@ -0,0 +1 @@
|
||||
export PATH="/usr/local/sbin:$PATH"
|
||||
7
.config/zsh/docker.zsh
Normal file
7
.config/zsh/docker.zsh
Normal file
@@ -0,0 +1,7 @@
|
||||
alias dcrun="docker compose "
|
||||
alias dclogs="docker compose logs "
|
||||
|
||||
function dcrestart () {
|
||||
docker compose rm -sf "$@"
|
||||
docker compose up -d "$@"
|
||||
}
|
||||
30
.config/zsh/ecs.zsh
Normal file
30
.config/zsh/ecs.zsh
Normal file
@@ -0,0 +1,30 @@
|
||||
ecsInstances() {
|
||||
cluster=$1
|
||||
profile=${2:-default}
|
||||
aws ecs list-container-instances --cluster $cluster --profile $profile | jq -r '.containerInstanceArns | join(" ")'
|
||||
}
|
||||
|
||||
ecsInstanceInfo() {
|
||||
cluster=$1
|
||||
profile=${2:-default}
|
||||
instances=(`ecsInstances $cluster $profile`)
|
||||
aws ecs describe-container-instances --cluster $cluster --profile $profile --container-instances $instances[@]
|
||||
}
|
||||
|
||||
ecsInstanceIds() {
|
||||
cluster=$1
|
||||
profile=${2:-default}
|
||||
ecsInstanceInfo $cluster $profile | jq -r '.containerInstances[].ec2InstanceId'
|
||||
}
|
||||
|
||||
xecsSsh() {
|
||||
cluster=$1
|
||||
profile=${2:-default}
|
||||
user=${3:-"ec2-user"}
|
||||
# KEYS=(`find ~/.ssh/*$profile*.pem | xargs -I {} echo "-i {}" | xargs`)
|
||||
KEYS=(`find ~/.ssh/$profile.pem | xargs -I {} echo "-i {}" | xargs`)
|
||||
echo $KEYS
|
||||
CMD="xpanes -tsc \"SSM_PROFILE=$profile autossh -M 0 ${KEYS[@]} -o ServerAliveInterval=60 -o StrictHostKeyChecking=no $user@{}\" $(ecsInstanceIds $cluster $profile | xargs)"
|
||||
eval $CMD
|
||||
}
|
||||
|
||||
19
.config/zsh/git.zsh
Normal file
19
.config/zsh/git.zsh
Normal file
@@ -0,0 +1,19 @@
|
||||
alias ghm='git push heroku master'
|
||||
alias gpp='git pull origin "(git_current_branch)" && git push origin "(git_current_branch)"'
|
||||
|
||||
function grcl () {
|
||||
local branch="${1:-master}"
|
||||
|
||||
echo git checkout $branch
|
||||
echo git pull
|
||||
echo git remote prune origin
|
||||
echo git branch -avv | grep "gone]" | awk '{ print $1 }' | xargs git branch -d;
|
||||
}
|
||||
|
||||
alias gie='git init && git commit --allow-empty -m "Initial commit"'
|
||||
|
||||
# alias __git-checkout_main=_git_checkout
|
||||
# compdef _git grcl=git-checkout
|
||||
|
||||
alias grc="git branch --merged | grep -v '\*' | grep -v master | grep -v stage | xargs -n 1 git branch -d"
|
||||
alias grcr="git fetch --all -p && git branch -r --merged | grep -v '\*' | grep origin | grep -v master | grep -v stage | sed 's/origin\//:/' | xargs -n 1 echo git push origin"
|
||||
3
.config/zsh/mosh.zsh
Normal file
3
.config/zsh/mosh.zsh
Normal file
@@ -0,0 +1,3 @@
|
||||
function mosht () {
|
||||
mosh $1 -- sh -c "tmux attach || tmux"
|
||||
}
|
||||
3
.config/zsh/ssh.zsh
Normal file
3
.config/zsh/ssh.zsh
Normal file
@@ -0,0 +1,3 @@
|
||||
function ssht () {
|
||||
ssh $1 -t "tmux attach -d || tmux"
|
||||
}
|
||||
1
.config/zsh/tmux.zsh
Normal file
1
.config/zsh/tmux.zsh
Normal file
@@ -0,0 +1 @@
|
||||
alias xssh="xpanes --ssh"
|
||||
10
.config/zsh/vim.zsh
Normal file
10
.config/zsh/vim.zsh
Normal file
@@ -0,0 +1,10 @@
|
||||
## nvim
|
||||
#export PYTHON_HOST_PROG="/usr/bin/python2"
|
||||
#export PYTHON3_HOST_PROG="/usr/local/bin/python3"
|
||||
alias vim="nvim"
|
||||
alias vi="nvim"
|
||||
|
||||
## Lunarvim
|
||||
alias vim="lvim"
|
||||
alias vi="lvim"
|
||||
export PATH=~/.local/bin:$PATH
|
||||
1
.config/zsh/vscode.zsh##os.Darwin
Normal file
1
.config/zsh/vscode.zsh##os.Darwin
Normal file
@@ -0,0 +1 @@
|
||||
alias fixvscode="sudo codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app/"
|
||||
Binary file not shown.
11
README.md
Normal file
11
README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Ted's dotfiles
|
||||
|
||||
I'm just getting started with this, so it's in a very, very alpha state.
|
||||
It uses [yadm](https://yadm.io/docs/install), so install that first.
|
||||
|
||||
## Directions
|
||||
|
||||
* Install yadm
|
||||
* yadm clone https://github.com/tedkulp/dotfiles
|
||||
* Make sure to run bootstrap when it asks
|
||||
* More stuff to come
|
||||
Reference in New Issue
Block a user