dev: add nvim config

This commit is contained in:
2026-06-29 15:54:28 +01:00
parent 2e6cae4d02
commit b01daf0bc4
2 changed files with 30 additions and 7 deletions

19
.nvim.lua Normal file
View File

@@ -0,0 +1,19 @@
local ok, conform = pcall(require, "conform")
if not ok then
vim.notify("conform.nvim not loaded", vim.log.levels.WARN)
return
end
conform.setup({
formatters_by_ft = {
javascript = { "oxfmt" },
javascriptreact = { "oxfmt" },
typescript = { "oxfmt" },
typescriptreact = { "oxfmt" },
json = { "oxfmt" },
jsonc = { "oxfmt" },
},
})
vim.lsp.enable("tsgo")
vim.lsp.enable("oxlint")