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