File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -526,9 +526,9 @@ local on_attach = function(_, bufnr)
526
526
end , ' [W]orkspace [L]ist Folders' )
527
527
528
528
-- 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' })
532
532
end
533
533
534
534
-- document existing key chains
Original file line number Diff line number Diff line change 1
1
return {
2
2
' mhartington/formatter.nvim' ,
3
+ lazy = false ,
3
4
keys = {
4
5
{ " <leader>f" , " <cmd>Format<cr>" , desc = " Format" },
5
6
},
@@ -11,13 +12,12 @@ return {
11
12
lua = {
12
13
require (" formatter.filetypes.lua" ).stylua ,
13
14
},
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
+ }
21
21
},
22
22
[" *" ] = {
23
23
require (" formatter.filetypes.any" ).remove_trailing_whitespace ,
You can’t perform that action at this time.
0 commit comments