Compare commits
10 Commits
277b60a8a0
...
c140c78d8c
| Author | SHA1 | Date | |
|---|---|---|---|
| c140c78d8c | |||
| 7735692fd1 | |||
| 8f0abf329b | |||
| dfa5a46946 | |||
| 952738996e | |||
| 8af6929e50 | |||
| 3c3f2876de | |||
| 12a2618c51 | |||
| 07591c8278 | |||
| 6627bd3813 |
@ -36,6 +36,9 @@ github = 'reegnz/jq-zsh-plugin'
|
|||||||
[plugins.zsh-autopair]
|
[plugins.zsh-autopair]
|
||||||
github = 'hlissner/zsh-autopair'
|
github = 'hlissner/zsh-autopair'
|
||||||
|
|
||||||
|
[plugins.zsh-nvm]
|
||||||
|
github = 'lukechilds/zsh-nvm'
|
||||||
|
|
||||||
{{- if eq .chezmoi.hostname "taupo" }}
|
{{- if eq .chezmoi.hostname "taupo" }}
|
||||||
[plugins.zsh-autoswitch-virtualenv]
|
[plugins.zsh-autoswitch-virtualenv]
|
||||||
github = 'MichaelAquilina/zsh-autoswitch-virtualenv'
|
github = 'MichaelAquilina/zsh-autoswitch-virtualenv'
|
||||||
|
|||||||
@ -11,9 +11,12 @@ alias ta='tmux a'
|
|||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias zz='zcat $1 | most'
|
alias zz='zcat $1 | most'
|
||||||
|
alias curlh='curl -Livso /dev/null'
|
||||||
|
|
||||||
{{ if eq .chezmoi.hostname "taupo" -}}
|
{{ if eq .chezmoi.hostname "taupo" -}}
|
||||||
alias cat="batcat"
|
alias cat="batcat"
|
||||||
|
alias l='eza -a'
|
||||||
|
alias ll='eza -lab'
|
||||||
alias lah='eza -lbhHigmuSa --time-style=long-iso --color-scale' # all list
|
alias lah='eza -lbhHigmuSa --time-style=long-iso --color-scale' # all list
|
||||||
alias lxh='eza -lbhHigmuSa@ --time-style=long-iso --color-scale' # all + extended list
|
alias lxh='eza -lbhHigmuSa@ --time-style=long-iso --color-scale' # all + extended list
|
||||||
alias dig="dog --time A NS MX TXT AAAA SOA $1"
|
alias dig="dog --time A NS MX TXT AAAA SOA $1"
|
||||||
|
|||||||
@ -7,3 +7,4 @@ export PATH=$HOME/.local/share/bob/nvim-bin:$HOME/.bin:$PATH
|
|||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git'
|
export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git'
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
|
export NVM_LAZY_LOAD=true
|
||||||
|
|||||||
@ -63,4 +63,3 @@ eval "$(sheldon source)"
|
|||||||
# Profiling
|
# Profiling
|
||||||
#unsetopt XTRACE
|
#unsetopt XTRACE
|
||||||
#exec 2>&3 3>&-
|
#exec 2>&3 3>&-
|
||||||
|
|
||||||
|
|||||||
@ -35,8 +35,8 @@ opt.expandtab = true
|
|||||||
opt.tabstop = 4
|
opt.tabstop = 4
|
||||||
opt.shiftwidth = 4
|
opt.shiftwidth = 4
|
||||||
opt.softtabstop = 4
|
opt.softtabstop = 4
|
||||||
opt.pastetoggle = "<F2>"
|
|
||||||
opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
|
opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
|
||||||
opt.mouse = "a"
|
opt.mouse = "a"
|
||||||
opt.wrap = true
|
opt.wrap = true
|
||||||
opt.rtp:append (vim.fn.stdpath ('data') .. '/site') -- https://github.com/neovim/neovim/issues/23082
|
opt.rtp:append (vim.fn.stdpath ('data') .. '/site') -- https://github.com/neovim/neovim/issues/23082
|
||||||
|
opt.inccommand = "split"
|
||||||
|
|||||||
7
private_dot_config/nvim/lua/plugins/alpha.lua
Normal file
7
private_dot_config/nvim/lua/plugins/alpha.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"goolord/alpha-nvim",
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
config = function()
|
||||||
|
require("alpha").setup(require("alpha.themes.startify").config)
|
||||||
|
end,
|
||||||
|
}
|
||||||
10
private_dot_config/nvim/lua/plugins/colorscheme.lua
Normal file
10
private_dot_config/nvim/lua/plugins/colorscheme.lua
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
return {
|
||||||
|
"rebelot/kanagawa.nvim",
|
||||||
|
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "kanagawa-wave",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -1,156 +0,0 @@
|
|||||||
return {
|
|
||||||
|
|
||||||
{
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
event = "VeryLazy",
|
|
||||||
dependencies = {
|
|
||||||
{
|
|
||||||
"theHamsta/nvim-dap-virtual-text",
|
|
||||||
config = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "", linehl = "", numhl = "" })
|
|
||||||
vim.fn.sign_define("DapBreakpointCondition", { text = "", texthl = "", linehl = "", numhl = "" })
|
|
||||||
vim.fn.sign_define("DapBreakpointRejected", { text = "", texthl = "", linehl = "", numhl = "" })
|
|
||||||
vim.fn.sign_define("DapLogPoint", { text = "", texthl = "", linehl = "", numhl = "" })
|
|
||||||
vim.fn.sign_define("DapStopped", { text = "", texthl = "", linehl = "", numhl = "" })
|
|
||||||
require("dap").defaults.fallback.terminal_win_cmd = "enew | set filetype=dap-terminal"
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
|
||||||
pattern = "dap-repl",
|
|
||||||
callback = function()
|
|
||||||
require("dap.ext.autocompl").attach()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
require("which-key").register({
|
|
||||||
["<leader>db"] = { name = "+breakpoints" },
|
|
||||||
["<leader>ds"] = { name = "+steps" },
|
|
||||||
["<leader>dv"] = { name = "+views" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>dbc",
|
|
||||||
function()
|
|
||||||
require("dap").set_breakpoint(vim.fn.input("Breakpoint condition: "))
|
|
||||||
end,
|
|
||||||
desc = "Conditional Breakpoint",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dbl",
|
|
||||||
function()
|
|
||||||
require("dap").set_breakpoint(nil, nil, vim.fn.input("Log point message"))
|
|
||||||
end,
|
|
||||||
desc = "Logpoint",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dbr",
|
|
||||||
function()
|
|
||||||
require("dap.breakpoints").clear()
|
|
||||||
end,
|
|
||||||
desc = "Remove All",
|
|
||||||
},
|
|
||||||
{ "<leader>dbs", "<CMD>Telescope dap list_breakpoints<CR>", desc = "Show All" },
|
|
||||||
{
|
|
||||||
"<leader>dbt",
|
|
||||||
function()
|
|
||||||
require("dap").toggle_breakpoint()
|
|
||||||
end,
|
|
||||||
desc = "Toggle Breakpoint",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dc",
|
|
||||||
function()
|
|
||||||
require("dap").continue()
|
|
||||||
end,
|
|
||||||
desc = "Continue",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>de",
|
|
||||||
function()
|
|
||||||
require("dap.ui.widgets").hover(nil, { border = "none" })
|
|
||||||
end,
|
|
||||||
desc = "Evalutate Expression",
|
|
||||||
mode = { "n", "v" },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dp",
|
|
||||||
function()
|
|
||||||
require("dap").pause()
|
|
||||||
end,
|
|
||||||
desc = "Pause",
|
|
||||||
},
|
|
||||||
{ "<leader>dr", "<CMD>Telescope dap configurations<CR>", desc = "Run" },
|
|
||||||
{
|
|
||||||
"<leader>dsb",
|
|
||||||
function()
|
|
||||||
require("dap").step_back()
|
|
||||||
end,
|
|
||||||
desc = "Step Back",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dsc",
|
|
||||||
function()
|
|
||||||
require("dap").run_to_cursor()
|
|
||||||
end,
|
|
||||||
desc = "Run to Cursor",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dsi",
|
|
||||||
function()
|
|
||||||
require("dap").step_into()
|
|
||||||
end,
|
|
||||||
desc = "Step Into",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dso",
|
|
||||||
function()
|
|
||||||
require("dap").step_over()
|
|
||||||
end,
|
|
||||||
desc = "Step Over",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dsx",
|
|
||||||
function()
|
|
||||||
require("dap").step_out()
|
|
||||||
end,
|
|
||||||
desc = "Step Out",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dx",
|
|
||||||
function()
|
|
||||||
require("dap").terminate()
|
|
||||||
end,
|
|
||||||
desc = "Terminate",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dvf",
|
|
||||||
function()
|
|
||||||
require("dap.ui.widgets").centered_float(require("dap.ui.widgets").frames, { border = "none" })
|
|
||||||
end,
|
|
||||||
desc = "Show Frames",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dvr",
|
|
||||||
function()
|
|
||||||
require("dap").repl.open(nil, "20split")
|
|
||||||
end,
|
|
||||||
desc = "Show Repl",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dvs",
|
|
||||||
function()
|
|
||||||
require("dap.ui.widgets").centered_float(require("dap.ui.widgets").scopes, { border = "none" })
|
|
||||||
end,
|
|
||||||
desc = "Show Scopes",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>dvt",
|
|
||||||
function()
|
|
||||||
require("dap.ui.widgets").centered_float(require("dap.ui.widgets").threads, { border = "none" })
|
|
||||||
end,
|
|
||||||
desc = "Show Threads",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
vim.diagnostic.config({ virtual_text = false }) --better inline lsp diagnostics
|
|
||||||
return {
|
|
||||||
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
|
||||||
config = function()
|
|
||||||
require("lsp_lines").setup()
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
8
private_dot_config/nvim/lua/plugins/snippets.lua
Normal file
8
private_dot_config/nvim/lua/plugins/snippets.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
config = function()
|
||||||
|
require("luasnip.loaders.from_snipmate").load()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
3
private_dot_config/nvim/lua/plugins/table-mode.lua
Normal file
3
private_dot_config/nvim/lua/plugins/table-mode.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
"dhruvasagar/vim-table-mode",
|
||||||
|
}
|
||||||
@ -1,4 +0,0 @@
|
|||||||
snippet ftpu "FTP users"
|
|
||||||
- login: ${1:${VISUAL}}
|
|
||||||
password: ${2}
|
|
||||||
path: ${3}
|
|
||||||
35
private_dot_config/nvim/snippets/yaml.snippets
Normal file
35
private_dot_config/nvim/snippets/yaml.snippets
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
snippet ftpu "FTP users"
|
||||||
|
- login: ${1:${VISUAL}}
|
||||||
|
password: ${2}
|
||||||
|
path: ${3}
|
||||||
|
snippet BUG "BUG"
|
||||||
|
:BUG:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet DEBUG "DEBUG"
|
||||||
|
:DEBUG:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet WARNING "WARNING"
|
||||||
|
:WARNING:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet TODO "TODO"
|
||||||
|
:TODO:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet COMMENT "COMMENT"
|
||||||
|
:COMMENT:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet DOC "DOC"
|
||||||
|
:DOC:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
snippet EXPIRE "EXPIRE"
|
||||||
|
:EXPIRE:jrabier:`strftime("%Y%m%d")`: ${1}
|
||||||
|
|
||||||
|
snippet client_contacts "Client contacts"
|
||||||
|
- name: ${1:${VISUAL}}
|
||||||
|
email: ${2}
|
||||||
|
admin: ${3}
|
||||||
|
tech: ${4}
|
||||||
|
hno_phone: ${5}
|
||||||
|
hno_comment: ${6}
|
||||||
|
|
||||||
|
snippet local_admins "Local Admins"
|
||||||
|
- name: ${1:${VISUAL}}
|
||||||
|
firstname: ${2}
|
||||||
|
lastname: ${3}
|
||||||
|
shell: /bin/bash
|
||||||
|
password:
|
||||||
|
key: ${4}
|
||||||
|
email: ${5}
|
||||||
@ -36,6 +36,9 @@ github = 'reegnz/jq-zsh-plugin'
|
|||||||
[plugins.zsh-autopair]
|
[plugins.zsh-autopair]
|
||||||
github = 'hlissner/zsh-autopair'
|
github = 'hlissner/zsh-autopair'
|
||||||
|
|
||||||
|
[plugins.zsh-nvm]
|
||||||
|
github = 'lukechilds/zsh-nvm'
|
||||||
|
|
||||||
{{- if eq .chezmoi.hostname "taupo" }}
|
{{- if eq .chezmoi.hostname "taupo" }}
|
||||||
[plugins.zsh-autoswitch-virtualenv]
|
[plugins.zsh-autoswitch-virtualenv]
|
||||||
github = 'MichaelAquilina/zsh-autoswitch-virtualenv'
|
github = 'MichaelAquilina/zsh-autoswitch-virtualenv'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user