chore: adding more disable options for basedbyright
This commit is contained in:
106
lua/plugins/development.lua
Normal file
106
lua/plugins/development.lua
Normal file
@@ -0,0 +1,106 @@
|
||||
-- Development Tools and Debugging
|
||||
return {
|
||||
-- LSP End hints
|
||||
{
|
||||
"chrisgrieser/nvim-lsp-endhints",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
icons = {
|
||||
type = " ",
|
||||
parameter = " ",
|
||||
offspec = " ", -- hint kind not defined in official LSP spec
|
||||
unknown = " ", -- hint kind is nil
|
||||
},
|
||||
label = {
|
||||
truncateAtChars = 100,
|
||||
padding = 1,
|
||||
marginLeft = 0,
|
||||
sameKindSeparator = ", ",
|
||||
},
|
||||
extmark = {
|
||||
priority = 50,
|
||||
},
|
||||
autoEnableHints = true,
|
||||
},
|
||||
},
|
||||
|
||||
-- DAP UI (disabled)
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
enabled = false,
|
||||
requires = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
|
||||
opts = {
|
||||
eval = true,
|
||||
mappings = {
|
||||
edit = "e",
|
||||
expand = { "<CR>", "<2-LeftMouse>" },
|
||||
open = "o",
|
||||
remove = "d",
|
||||
repl = "r",
|
||||
toggle = "t",
|
||||
},
|
||||
layouts = {
|
||||
{
|
||||
elements = {
|
||||
{
|
||||
id = "repl",
|
||||
size = 0.5,
|
||||
},
|
||||
{
|
||||
id = "console",
|
||||
size = 0.5,
|
||||
},
|
||||
},
|
||||
position = "left",
|
||||
size = 40,
|
||||
},
|
||||
{
|
||||
elements = {
|
||||
{
|
||||
id = "scopes",
|
||||
size = 0.25,
|
||||
},
|
||||
{
|
||||
id = "breakpoints",
|
||||
size = 0.25,
|
||||
},
|
||||
},
|
||||
position = "bottom",
|
||||
size = 8,
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local dap = require("dap")
|
||||
local dapui = require("dapui")
|
||||
dapui.setup(opts)
|
||||
dap.listeners.after.event_terminated["dapui"] = function()
|
||||
-- Do nothing, keeping the UI open
|
||||
end
|
||||
dap.listeners.after.event_exited["dapui"] = function()
|
||||
-- Do nothing, keeping the UI open
|
||||
end
|
||||
dap.listeners.after.event_initialized["dapui"] = function()
|
||||
dapui.open()
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
-- DAP Virtual Text (disabled)
|
||||
{
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
enabled = false,
|
||||
event = "User AstroFile",
|
||||
opts = {
|
||||
commented = false,
|
||||
enabled = true,
|
||||
enabled_commands = true,
|
||||
show_stop_reason = true,
|
||||
virt_text_pos = "eol",
|
||||
},
|
||||
},
|
||||
|
||||
-- Disabled development plugins
|
||||
{ "mfussenegger/nvim-dap", enabled = false },
|
||||
{ "jay-babu/mason-nvim-dap.nvim", enabled = false },
|
||||
}
|
||||
Reference in New Issue
Block a user