mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-22 14:38:04 +01:00
Compare commits
6 commits
02977f9385
...
37470f5811
Author | SHA1 | Date | |
---|---|---|---|
37470f5811 | |||
0e10ce31e1 | |||
f3bacd1462 | |||
500fbc0cef | |||
3bd295933f | |||
921da663f2 |
6 changed files with 103 additions and 12 deletions
|
@ -10,6 +10,7 @@
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
followtags = true
|
||||||
[help]
|
[help]
|
||||||
autocorrect = immediate
|
autocorrect = immediate
|
||||||
{{- if hasKey . "proxy" }}
|
{{- if hasKey . "proxy" }}
|
||||||
|
@ -46,8 +47,12 @@
|
||||||
pushnoci = push -o ci.skip
|
pushnoci = push -o ci.skip
|
||||||
diffs = diff --staged
|
diffs = diff --staged
|
||||||
restores = restore --staged
|
restores = restore --staged
|
||||||
|
[commit]
|
||||||
|
verbose = true
|
||||||
|
[rerere]
|
||||||
|
enabled = true
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = nvim
|
||||||
attributesfile = {{ .chezmoi.homeDir }}/.gitattributes
|
attributesfile = {{ .chezmoi.homeDir }}/.gitattributes
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
[sendemail]
|
[sendemail]
|
||||||
|
@ -57,9 +62,20 @@
|
||||||
smtpserverport = 465
|
smtpserverport = 465
|
||||||
smtppass = {{ (bitwarden "item" "Migadu email").login.password | quote }}
|
smtppass = {{ (bitwarden "item" "Migadu email").login.password | quote }}
|
||||||
confirm = auto
|
confirm = auto
|
||||||
|
[submodule]
|
||||||
|
recurse = true
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
prunetags = true
|
||||||
|
[log]
|
||||||
|
date = iso
|
||||||
|
[status]
|
||||||
|
submoduleSummary = true
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = default
|
colorMoved = default
|
||||||
algorithm = histogram
|
algorithm = histogram
|
||||||
|
submodule = log
|
||||||
|
tool = nvimdiff
|
||||||
[diff "color"]
|
[diff "color"]
|
||||||
textconv=pygmentize
|
textconv=pygmentize
|
||||||
[diff "pandoc2md"]
|
[diff "pandoc2md"]
|
||||||
|
@ -71,11 +87,18 @@
|
||||||
[diff "ziplist"]
|
[diff "ziplist"]
|
||||||
textconv=unzip -l
|
textconv=unzip -l
|
||||||
[merge]
|
[merge]
|
||||||
conflictstyle = diff3
|
conflictstyle = zdiff3
|
||||||
|
tool = nvimdiff
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
|
[rebase]
|
||||||
|
autosquash = true
|
||||||
|
autostash = true
|
||||||
|
updateRefs = true
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
|
[branch]
|
||||||
|
sort = -committerdate
|
||||||
[advice]
|
[advice]
|
||||||
detachedHead = false
|
detachedHead = false
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
|
@ -89,5 +112,12 @@
|
||||||
[tag]
|
[tag]
|
||||||
sort = version:refname
|
sort = version:refname
|
||||||
|
|
||||||
|
[url "git@github.com:"]
|
||||||
|
insteadOf = "https://github.com/"
|
||||||
|
insteadOf = "gh:"
|
||||||
|
|
||||||
|
[credential]
|
||||||
|
helper = osxkeychain
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
path = ovh.config
|
path = ovh.config
|
||||||
|
|
|
@ -5,7 +5,7 @@ M.plugins = "custom.plugins"
|
||||||
M.mappings = require "custom.mappings"
|
M.mappings = require "custom.mappings"
|
||||||
|
|
||||||
M.ui = {
|
M.ui = {
|
||||||
theme = "catppuccin",
|
theme = "tomorrow_night",
|
||||||
statusline = {
|
statusline = {
|
||||||
theme = "default",
|
theme = "default",
|
||||||
separator_style = "arrow",
|
separator_style = "arrow",
|
||||||
|
|
14
dot_config/nvim/lua/custom/configs/nvim-dap-ui.lua
Normal file
14
dot_config/nvim/lua/custom/configs/nvim-dap-ui.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
local dap, dapui = require("dap"), require("dapui")
|
||||||
|
dap.listeners.before.attach.dapui_config = function()
|
||||||
|
dapui.open()
|
||||||
|
end
|
||||||
|
dap.listeners.before.launch.dapui_config = function()
|
||||||
|
dapui.open()
|
||||||
|
end
|
||||||
|
dap.listeners.before.event_terminated.dapui_config = function()
|
||||||
|
dapui.close()
|
||||||
|
end
|
||||||
|
dap.listeners.before.event_exited.dapui_config = function()
|
||||||
|
dapui.close()
|
||||||
|
end
|
||||||
|
|
|
@ -7,13 +7,34 @@ M.dap = {
|
||||||
"<cmd> DapToggleBreakpoint <CR>",
|
"<cmd> DapToggleBreakpoint <CR>",
|
||||||
"Add breakpoint at line"
|
"Add breakpoint at line"
|
||||||
},
|
},
|
||||||
|
["<leader>dc"] = {
|
||||||
|
"<cmd> DapContinue <CR>",
|
||||||
|
"Debug - continue"
|
||||||
|
},
|
||||||
|
["<leader>dsi"] = {
|
||||||
|
"<cmd> DapStepInto <CR>",
|
||||||
|
"Debug - step into"
|
||||||
|
},
|
||||||
|
["<leader>dn"] = {
|
||||||
|
"<cmd> DapStepOver <CR>",
|
||||||
|
"Debug - step over (next)"
|
||||||
|
},
|
||||||
|
["<leader>dso"] = {
|
||||||
|
"<cmd> DapStepOut <CR>",
|
||||||
|
"Debug - step out"
|
||||||
|
},
|
||||||
|
["<leader>dt"] = {
|
||||||
|
"<cmd> DapTerminate <CR>",
|
||||||
|
"Debug - terminate"
|
||||||
|
},
|
||||||
["<leader>dus"] = {
|
["<leader>dus"] = {
|
||||||
function ()
|
function ()
|
||||||
local widgets = require('dap.ui.widgets');
|
require("dapui").toggle();
|
||||||
local sidebar = widgets.sidebar(widgets.scopes);
|
-- local widgets = require('dap.ui.widgets');
|
||||||
sidebar.open();
|
-- local sidebar = widgets.sidebar(widgets.scopes);
|
||||||
|
-- sidebar.open();
|
||||||
end,
|
end,
|
||||||
"Open debugging sidebar"
|
"Toggle debugging interface"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,13 +50,25 @@ M.dap_go = {
|
||||||
},
|
},
|
||||||
["<leader>dgl"] = {
|
["<leader>dgl"] = {
|
||||||
function()
|
function()
|
||||||
require("dap-go").debug_last()
|
require("dap-go").debug_last_test()
|
||||||
end,
|
end,
|
||||||
"Debug last go test"
|
"Debug last go test"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
M.dap_ui = {
|
||||||
|
plugin = true,
|
||||||
|
n = {
|
||||||
|
["È"] = { -- alt+k
|
||||||
|
function()
|
||||||
|
require("dapui").eval()
|
||||||
|
end,
|
||||||
|
"Debug - eval expression"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
M.terminal = {
|
M.terminal = {
|
||||||
t = {
|
t = {
|
||||||
["<Esc>"] = {"<C-\\><C-n>"}
|
["<Esc>"] = {"<C-\\><C-n>"}
|
||||||
|
|
|
@ -22,6 +22,16 @@ local plugins = {
|
||||||
require("core.utils").load_mappings("dap_go")
|
require("core.utils").load_mappings("dap_go")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-dap-ui", -- UI for the DAP debugger
|
||||||
|
ft = "go",
|
||||||
|
dependencies = "mfussenegger/nvim-dap",
|
||||||
|
config = function()
|
||||||
|
require("dapui").setup()
|
||||||
|
require "custom.configs.nvim-dap-ui"
|
||||||
|
require("core.utils").load_mappings("dap_ui")
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig", -- load custom lsp config
|
"neovim/nvim-lspconfig", -- load custom lsp config
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -45,6 +55,6 @@ local plugins = {
|
||||||
build = function()
|
build = function()
|
||||||
vim.cmd [[silent! GoInstallDeps]]
|
vim.cmd [[silent! GoInstallDeps]]
|
||||||
end,
|
end,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
return plugins
|
return plugins
|
||||||
|
|
|
@ -11,7 +11,7 @@ unbind %
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
# fast reload
|
# fast reload
|
||||||
bind r source-file ~/.tmux.conf
|
bind r source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
# switch panes using alt+arrow
|
# switch panes using alt+arrow
|
||||||
bind -n M-Left select-pane -L
|
bind -n M-Left select-pane -L
|
||||||
|
@ -21,6 +21,10 @@ bind -n M-Down select-pane -D
|
||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
|
# nvim fixes
|
||||||
|
set -sg escape-time 300
|
||||||
|
set -g focus-events on
|
||||||
|
|
||||||
# don't rename windows automatically
|
# don't rename windows automatically
|
||||||
set-option -g allow-rename off
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
@ -45,8 +49,8 @@ bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
|
||||||
bind P paste-buffer
|
bind P paste-buffer
|
||||||
|
|
||||||
# color support
|
# color support
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
set -ga terminal-overrides ",tmux-256color:Tc"
|
||||||
|
|
||||||
bind u capture-pane \;\
|
bind u capture-pane \;\
|
||||||
save-buffer /tmp/tmux-buffer \;\
|
save-buffer /tmp/tmux-buffer \;\
|
Loading…
Reference in a new issue