update
This commit is contained in:
parent
d6a71c92d4
commit
b12e317651
|
@ -56,12 +56,12 @@ local luaformat = {
|
||||||
}
|
}
|
||||||
local util = require "lspconfig".util
|
local util = require "lspconfig".util
|
||||||
local on_attach_efm = function(client)
|
local on_attach_efm = function(client)
|
||||||
if client.resolved_capabilities.document_formatting then
|
-- if client.resolved_capabilities.document_formatting then
|
||||||
vim.cmd [[augroup lsp_formatting]]
|
-- vim.cmd [[augroup lsp_formatting]]
|
||||||
vim.cmd [[autocmd!]]
|
-- vim.cmd [[autocmd!]]
|
||||||
vim.cmd [[autocmd BufWritePre <buffer> :lua vim.lsp.buf.formatting_seq_sync({}, 1000)]]
|
-- vim.cmd [[autocmd BufWritePre <buffer> :lua vim.lsp.buf.formatting_seq_sync({}, 1000)]]
|
||||||
vim.cmd [[augroup END]]
|
-- vim.cmd [[augroup END]]
|
||||||
end
|
-- end
|
||||||
end
|
end
|
||||||
require "lspconfig".efm.setup {
|
require "lspconfig".efm.setup {
|
||||||
init_options = {documentFormatting = true},
|
init_options = {documentFormatting = true},
|
||||||
|
@ -111,7 +111,6 @@ local servers = {
|
||||||
'vimls',
|
'vimls',
|
||||||
-- npm install -g vls
|
-- npm install -g vls
|
||||||
'vuels',
|
'vuels',
|
||||||
-- npm i -g stylelint-lsp
|
|
||||||
'yamlls',
|
'yamlls',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue