style: reformat lua
nix run sys#luaformatter -- home/nvim/init.lua -i
This commit is contained in:
parent
8230b440c5
commit
ade5e39f48
49
init.lua
49
init.lua
@ -1,8 +1,6 @@
|
||||
vim.opt.termguicolors = true
|
||||
vim.notify = require("notify")
|
||||
vim.notify.setup({
|
||||
background_colour = "#000000"
|
||||
})
|
||||
vim.notify.setup({background_colour = "#000000"})
|
||||
local distant = require('distant')
|
||||
distant:setup()
|
||||
require("oil").setup()
|
||||
@ -25,11 +23,9 @@ require("telescope").setup({
|
||||
undo = {
|
||||
side_by_side = true,
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
preview_height = 0.8,
|
||||
},
|
||||
},
|
||||
},
|
||||
layout_config = {preview_height = 0.8}
|
||||
}
|
||||
}
|
||||
})
|
||||
require('telescope').load_extension("undo")
|
||||
local neogit = require('neogit')
|
||||
@ -42,31 +38,28 @@ neogit.setup({
|
||||
["github.com"] = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1",
|
||||
["bitbucket.org"] = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1",
|
||||
["gitlab.com"] = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
|
||||
["apps.terminal"] = "http://apps.terminal/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
|
||||
},
|
||||
["apps.terminal"] = "http://apps.terminal/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}"
|
||||
}
|
||||
})
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.adapters.lldb = {
|
||||
type = "executable",
|
||||
command = lldb_path .. "/bin/lldb-vscode",
|
||||
name = "lldb",
|
||||
name = "lldb"
|
||||
}
|
||||
local lldb = {
|
||||
name = "Launch lldb",
|
||||
type = "lldb", -- matches the adapter
|
||||
request = "launch", -- could also attach to a currently running process
|
||||
program = function()
|
||||
return vim.fn.input(
|
||||
"Path to executable: ",
|
||||
vim.fn.getcwd() .. "/",
|
||||
"file"
|
||||
)
|
||||
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/",
|
||||
"file")
|
||||
end,
|
||||
cwd = "$${workspaceFolder}",
|
||||
stopOnEntry = false,
|
||||
args = {},
|
||||
console = internalConsole,
|
||||
runInTerminal = true,
|
||||
runInTerminal = true
|
||||
}
|
||||
|
||||
dap.configurations.rust = {
|
||||
@ -83,20 +76,20 @@ local lldb = {
|
||||
text = "🟥",
|
||||
texthl = "LspDiagnosticsSignError",
|
||||
linehl = "",
|
||||
numhl = "",
|
||||
numhl = ""
|
||||
},
|
||||
rejected = {
|
||||
text = "",
|
||||
texthl = "LspDiagnosticsSignHint",
|
||||
linehl = "",
|
||||
numhl = "",
|
||||
numhl = ""
|
||||
},
|
||||
stopped = {
|
||||
text = "⭐️",
|
||||
texthl = "LspDiagnosticsSignInformation",
|
||||
linehl = "DiagnosticUnderlineInfo",
|
||||
numhl = "LspDiagnosticsSignInformation",
|
||||
},
|
||||
numhl = "LspDiagnosticsSignInformation"
|
||||
}
|
||||
}
|
||||
|
||||
vim.fn.sign_define("DapBreakpoint", dap_breakpoint.error)
|
||||
@ -106,12 +99,8 @@ local lldb = {
|
||||
dapui.setup()
|
||||
|
||||
-- Auto open and close dapUI
|
||||
dap.listeners.after.event_initialized["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
|
||||
dap.listeners.after.event_initialized["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
|
||||
|
Loading…
x
Reference in New Issue
Block a user