Skip to content

Commit 0b10f06

Browse files
committed
eslint fix
1 parent 18009d3 commit 0b10f06

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ local on_attach = function(_, bufnr)
526526
end, '[W]orkspace [L]ist Folders')
527527

528528
-- Create a command `:Format` local to the LSP buffer
529-
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
530-
vim.lsp.buf.format()
531-
end, { desc = 'Format current buffer with LSP' })
529+
--vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
530+
-- vim.lsp.buf.format()
531+
--end, { desc = 'Format current buffer with LSP' })
532532
end
533533

534534
-- document existing key chains

lua/custom/plugins/formatter.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
return {
22
'mhartington/formatter.nvim',
3+
lazy = false,
34
keys = {
45
{ "<leader>f", "<cmd>Format<cr>", desc = "Format" },
56
},
@@ -11,13 +12,12 @@ return {
1112
lua = {
1213
require("formatter.filetypes.lua").stylua,
1314
},
14-
vue = function()
15-
local M = {}
16-
local defaults = require "formatter.defaults"
17-
local util = require "formatter.util"
18-
M.vue = util.withl(defaults.eslint_d, "vue")
19-
return M
20-
end,
15+
vue = {
16+
require("formatter.filetypes.typescript").eslint_d,
17+
},
18+
typescript = {
19+
require("formatter.filetypes.typescript").eslint_d,
20+
}
2121
},
2222
["*"] = {
2323
require("formatter.filetypes.any").remove_trailing_whitespace,

0 commit comments

Comments
 (0)