Add jj/kitty/nvim/opencode/paru/fish/yazi/jjui
This commit is contained in:
25
nvim/files/lsp/biome.lua
Normal file
25
nvim/files/lsp/biome.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
cmd = { "biome", "lsp-proxy" },
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"json",
|
||||
"jsonc",
|
||||
"astro",
|
||||
"css",
|
||||
"graphql",
|
||||
"vue",
|
||||
"svelte",
|
||||
},
|
||||
root_markers = { "biome.json", "biome.jsonc" },
|
||||
on_attach = function(client, bufnr)
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
vim.lsp.buf.format({ bufnr = bufnr, id = client.id })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user