mirror of
https://github.com/zoriya/dotfiles.git
synced 2026-06-08 20:45:01 +00:00
Adding dap signs
This commit is contained in:
@@ -3,6 +3,9 @@ if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
dap.defaults.fallback.focus_terminal = true
|
||||
dap.defaults.fallback.terminal_win_cmd = ":lua require('dap.ui.widgets').new_centered_float_win(vim.api.nvim_create_buf(false, true))"
|
||||
|
||||
dap.adapters = {
|
||||
coreclr = {
|
||||
type = 'executable',
|
||||
@@ -21,10 +24,19 @@ dap.configurations = {
|
||||
return "/home/anonymus-raccoon/projects/Kyoo/src/Kyoo.Host.Console/bin/Debug/net6.0/Kyoo.Host.Console.dll"
|
||||
-- return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file')
|
||||
end,
|
||||
console = "externalTerminal",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
dap.set_log_level('TRACE')
|
||||
|
||||
vim.fn.sign_define('DapBreakpoint', {text='', texthl='GlyphPalette9', linehl='', numhl=''})
|
||||
vim.fn.sign_define("DapBreakpointCondition", { text = "", texthl = "GlyphPalette4", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define('DapBreakpointRejected', {text='', texthl='GlyphPalette9', linehl='', numhl=''})
|
||||
vim.fn.sign_define('DapStopped', {text='', texthl='GlyphPalette2', linehl='debugPC', numhl=''})
|
||||
|
||||
|
||||
require("nvim-dap-virtual-text").setup({
|
||||
enabled = true,
|
||||
enabled_commands = true,
|
||||
@@ -38,7 +50,7 @@ wk.register({
|
||||
d = {
|
||||
name = "Debugger",
|
||||
t = { "<cmd>lua require'dap'.toggle_breakpoint()<cr>", "Toggle Breakpoint" },
|
||||
b = { "<cmd>lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: ')<cr>", "Conditional Breakpoint" },
|
||||
b = { "<cmd>lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<cr>", "Conditional Breakpoint" },
|
||||
r = { "<cmd>lua require'dap'.repl.toggle()<cr>", "REPL" },
|
||||
c = { "<cmd>lua require'dap'.continue()<cr>", "Continue" },
|
||||
n = { "<cmd>lua require'dap'.step_over()<cr>", "Next" },
|
||||
|
||||
@@ -22,6 +22,21 @@ local server_settings = {
|
||||
},
|
||||
},
|
||||
},
|
||||
sumneko_lua = {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
workspace = {
|
||||
library = {
|
||||
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
||||
[vim.fn.stdpath("config") .. "/lua"] = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
lsp_installer.settings({
|
||||
|
||||
@@ -6,7 +6,7 @@ vim.g["ultest_running_sign"] = ""
|
||||
vim.g["ultest_not_run_sign"] = ""
|
||||
|
||||
vim.cmd [[
|
||||
augroup virtcolumn
|
||||
augroup test_list
|
||||
autocmd!
|
||||
autocmd FileType UltestSummary setl nolist
|
||||
augroup end
|
||||
|
||||
Reference in New Issue
Block a user