diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:18:05 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 20:48:05 -0400 |
commit | e6de44e4443042dc14d34e36dd8ee8528f4936f2 (patch) | |
tree | d600f814c33e9154bbb3fdde0dfda6e75b071483 /ftplugin/zig.lua | |
parent | 2a7b3d4892605508d0b0328444d689e1c4922897 (diff) |
more language reformat (#949)
Diffstat (limited to 'ftplugin/zig.lua')
-rw-r--r-- | ftplugin/zig.lua | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/ftplugin/zig.lua b/ftplugin/zig.lua index 55707d85..bc177211 100644 --- a/ftplugin/zig.lua +++ b/ftplugin/zig.lua @@ -1,17 +1,5 @@ -if not require("lv-utils").check_lsp_client_active "zls" then - -- 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 +require("lang.zig").format() +require("lang.zig").lint() +require("lang.zig").lsp() +require("lang.zig").dap() -require("lv-utils").define_augroups { - _zig_autoformat = { - { "BufEnter", "*.zig", ':lua vim.api.nvim_buf_set_option(0, "commentstring", "// %s")' }, - }, -} -vim.cmd "setl expandtab tabstop=8 softtabstop=4 shiftwidth=4" |