diff --git a/dot_local/bin/executable_nvim b/dot_bin/bob-amd64 similarity index 61% rename from dot_local/bin/executable_nvim rename to dot_bin/bob-amd64 index 5c7dc6e..a825e16 100755 Binary files a/dot_local/bin/executable_nvim and b/dot_bin/bob-amd64 differ diff --git a/dot_bin/bob-arm64 b/dot_bin/bob-arm64 new file mode 100755 index 0000000..ad13d0f Binary files /dev/null and b/dot_bin/bob-arm64 differ diff --git a/dot_bin/executable_bob.tmpl b/dot_bin/executable_bob.tmpl new file mode 100644 index 0000000..d63c646 --- /dev/null +++ b/dot_bin/executable_bob.tmpl @@ -0,0 +1 @@ +{{- include (printf "dot_bin/bob-%s" .chezmoi.arch) -}} diff --git a/dot_bin/executable_nvim b/dot_bin/executable_nvim deleted file mode 100755 index 9e8c135..0000000 Binary files a/dot_bin/executable_nvim and /dev/null differ diff --git a/dot_zsh/exports.tmpl b/dot_zsh/exports.tmpl index b44b59f..fd7bf21 100644 --- a/dot_zsh/exports.tmpl +++ b/dot_zsh/exports.tmpl @@ -1,8 +1,8 @@ {{- if eq .chezmoi.hostname "taupo" -}} export GOPATH=$HOME/.go -export PATH=$HOME/projets/tools/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH:/usr/sbin +export PATH=$HOME/.local/share/bob/nvim-bin:$HOME/projets/tools/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH:/usr/sbin {{- else -}} -export PATH=$HOME/.bin:$PATH +export PATH=$HOME/.local/share/bob/nvim-bin:$HOME/.bin:$PATH {{- end }} export EDITOR=vim export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git' diff --git a/private_dot_config/nvim/lua/plugins/dap.lua b/private_dot_config/nvim/lua/plugins/dap.lua new file mode 100644 index 0000000..1f3174d --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/dap.lua @@ -0,0 +1,156 @@ +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({ + ["db"] = { name = "+breakpoints" }, + ["ds"] = { name = "+steps" }, + ["dv"] = { name = "+views" }, + }) + end, + keys = { + { + "dbc", + function() + require("dap").set_breakpoint(vim.fn.input("Breakpoint condition: ")) + end, + desc = "Conditional Breakpoint", + }, + { + "dbl", + function() + require("dap").set_breakpoint(nil, nil, vim.fn.input("Log point message")) + end, + desc = "Logpoint", + }, + { + "dbr", + function() + require("dap.breakpoints").clear() + end, + desc = "Remove All", + }, + { "dbs", "Telescope dap list_breakpoints", desc = "Show All" }, + { + "dbt", + function() + require("dap").toggle_breakpoint() + end, + desc = "Toggle Breakpoint", + }, + { + "dc", + function() + require("dap").continue() + end, + desc = "Continue", + }, + { + "de", + function() + require("dap.ui.widgets").hover(nil, { border = "none" }) + end, + desc = "Evalutate Expression", + mode = { "n", "v" }, + }, + { + "dp", + function() + require("dap").pause() + end, + desc = "Pause", + }, + { "dr", "Telescope dap configurations", desc = "Run" }, + { + "dsb", + function() + require("dap").step_back() + end, + desc = "Step Back", + }, + { + "dsc", + function() + require("dap").run_to_cursor() + end, + desc = "Run to Cursor", + }, + { + "dsi", + function() + require("dap").step_into() + end, + desc = "Step Into", + }, + { + "dso", + function() + require("dap").step_over() + end, + desc = "Step Over", + }, + { + "dsx", + function() + require("dap").step_out() + end, + desc = "Step Out", + }, + { + "dx", + function() + require("dap").terminate() + end, + desc = "Terminate", + }, + { + "dvf", + function() + require("dap.ui.widgets").centered_float(require("dap.ui.widgets").frames, { border = "none" }) + end, + desc = "Show Frames", + }, + { + "dvr", + function() + require("dap").repl.open(nil, "20split") + end, + desc = "Show Repl", + }, + { + "dvs", + function() + require("dap.ui.widgets").centered_float(require("dap.ui.widgets").scopes, { border = "none" }) + end, + desc = "Show Scopes", + }, + { + "dvt", + function() + require("dap.ui.widgets").centered_float(require("dap.ui.widgets").threads, { border = "none" }) + end, + desc = "Show Threads", + }, + }, + }, +} diff --git a/private_dot_config/nvim/lua/plugins/lsp-lines.lua b/private_dot_config/nvim/lua/plugins/lsp-lines.lua new file mode 100644 index 0000000..7c87861 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/lsp-lines.lua @@ -0,0 +1,7 @@ +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, +}