Update formatting
This commit is contained in:
@@ -10,3 +10,14 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
vim.bo.smartindent = true
|
||||
end,
|
||||
})
|
||||
|
||||
-- Autoformat .gd files on save using gdformat
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
pattern = "*.gd",
|
||||
callback = function()
|
||||
-- Run gdformat on the file
|
||||
vim.cmd("silent !gdformat %")
|
||||
-- Reload the buffer to reflect changes
|
||||
vim.cmd("edit")
|
||||
end,
|
||||
})
|
||||
@@ -16,7 +16,7 @@ function M.setup(opts)
|
||||
|
||||
require("godotdev.start_editor_server")
|
||||
require("godotdev.reconnect_lsp")
|
||||
require("godotdev.force_spaces")
|
||||
require("godotdev.formatting")
|
||||
|
||||
require("godotdev.dap").setup({
|
||||
type = "server",
|
||||
|
||||
Reference in New Issue
Block a user