Add eslint LSP feat: Add linter support with 'nvim-lint' Add linting to JavaScript / TypeScript and Go files
11 lines
250 B
Lua
11 lines
250 B
Lua
return {
|
|
on_attach = function(_, bufnr)
|
|
-- Format document on save
|
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
|
buffer = bufnr,
|
|
callback = function()
|
|
require("conform").format({ async = true, lsp_fallback = true })
|
|
end,
|
|
})
|
|
end
|
|
}
|