feat(lsp): configure eslint, tailwindcss, tsgo and prettier
This commit is contained in:
@@ -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,
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
}
|
||||
Reference in New Issue
Block a user