more language reformat (#949)

This commit is contained in:
Abouzar Parvan 2021-07-15 05:18:05 +04:30 committed by GitHub
parent 2a7b3d4892
commit e6de44e444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 116 additions and 89 deletions

View file

@ -15,7 +15,20 @@ M.lint = function()
return "No linters configured!"
end
M.lsp = function() end
M.lsp = function()
if require("lv-utils").check_lsp_client_active "zls" then
return
end
-- Because lspinstall don't support zig yet,
-- So we need zls preset in global lib
-- Further custom install zls in
-- https://github.com/zigtools/zls/wiki/Downloading-and-Building-ZLS
require("lspconfig").zls.setup {
root_dir = require("lspconfig").util.root_pattern(".git", "build.zig", "zls.json"),
on_attach = require("lsp").common_on_attach,
}
end
M.dap = function()
-- TODO: implement dap