feat(lsp): configure eslint, tailwindcss, tsgo and prettier

This commit is contained in:
2026-02-28 09:47:24 +01:00
parent ccb89aaffa
commit a2521f0e6f
7 changed files with 75 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
local lsp = require("lsp")
---@type vim.lsp.Config
return {
on_attach = function(client, bufnr)
lsp.on_attach(client, bufnr)
vim.keymap.set("n", "<leader>lf", function()
vim.lsp.buf.format()
require("util").format({
buf = bufnr,
cmd = {
"prettier",
"--stdin-filepath",
"%file%",
},
})
end, { buffer = bufnr })
end,
}