formatting issues
This commit is contained in:
parent
253bac9d4c
commit
a637f87be0
@ -8,13 +8,18 @@ function M.toggle()
|
||||
end
|
||||
|
||||
function M.format()
|
||||
local ok, conform = pcall(require, "conform")
|
||||
-- TODO: work out how to call conform it it has a formatter and default
|
||||
-- to vim.lsp.buf.format()
|
||||
|
||||
if ok then
|
||||
conform.format()
|
||||
else
|
||||
vim.lsp.buf.format()
|
||||
end
|
||||
vim.lsp.buf.format()
|
||||
|
||||
-- local ok, conform = pcall(require, "conform")
|
||||
--
|
||||
-- if ok then
|
||||
-- conform.format()
|
||||
-- else
|
||||
-- vim.lsp.buf.format()
|
||||
-- end
|
||||
end
|
||||
|
||||
function M.on_attach(client, buf)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user