Skip to content

Commit

Permalink
fix: stylua did not read toml
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Dec 12, 2024
1 parent fe3a7e4 commit b57976c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 4 additions & 12 deletions config/native/lua/pde/dap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,10 @@ function M.setup()
map("<leader>db", dap.toggle_breakpoint, "toggle breakpoint")
map("<leader>d?", dapui.eval, "evaluate under cursor")

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
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

load_configs()
end
Expand Down
2 changes: 2 additions & 0 deletions config/native/lua/pde/lsp/configs/efm/stylua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ return {
"Never",
"${--range-start:charStart}",
"${--range-end:charEnd}",
"--stdin-filepath",
"'${INPUT}'",
"-",
},
formatCanRange = true,
Expand Down

0 comments on commit b57976c

Please sign in to comment.