From 5bce2a44d12a9f1c36974e328d0adce0be274443 Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Tue, 15 Apr 2025 16:56:15 +0200 Subject: [PATCH] Replace eslint config with biomejs --- lua/custom/lsp/config/{eslint.lua => biome.lua} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename lua/custom/lsp/config/{eslint.lua => biome.lua} (55%) diff --git a/lua/custom/lsp/config/eslint.lua b/lua/custom/lsp/config/biome.lua similarity index 55% rename from lua/custom/lsp/config/eslint.lua rename to lua/custom/lsp/config/biome.lua index 88ba19d..c82d78d 100644 --- a/lua/custom/lsp/config/eslint.lua +++ b/lua/custom/lsp/config/biome.lua @@ -1,9 +1,11 @@ return { on_attach = function(_, bufnr) - -- Auto format with eslint fix all + -- Format document on save vim.api.nvim_create_autocmd("BufWritePre", { buffer = bufnr, - command = "EslintFixAll", + callback = function() + vim.lsp.buf.format() + end, }) - end, + end }