mirror of
https://github.com/kennethnym/freya
synced 2026-07-01 13:51:14 +01:00
dev: add nvim config
This commit is contained in:
19
.nvim.lua
Normal file
19
.nvim.lua
Normal 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")
|
||||
Reference in New Issue
Block a user