-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
29 lines (26 loc) · 824 Bytes
/
init.lua
File metadata and controls
29 lines (26 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require("akita")
require("config.lazy")
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
python = { "pyright" },
-- You can customize some of the format options for the filetype (:help conform.format)
rust = { "rustfmt", lsp_format = "fallback" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
},
format_after_save = {
async = true,
lsp_format = "fallback",
},
})
-- print("hello")
if vim.fn.filereadable(vim.fn.getcwd() .. "/project.godot") == 1 then
local addr = "./godot.pipe"
if vim.fn.has("win32 == 1") then
-- Windows can't pipe so use localhost. Make sure this is configured in Godot
addr = "127.0.0.1:6004"
end
vim.fn.serverstart(addr)
end