diff options
| author | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
| commit | 20485971641a9d916640ccad05586a641c984ed6 (patch) | |
| tree | d397a3a9adba502b4c26b802d897b8310972f76f /ftplugin/zig.lua | |
| parent | 56e82dac4497293541099185441485dd31e98dc8 (diff) | |
| parent | a469c710bfc01f291df68dba40464caaa2b496da (diff) | |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim into stable
Diffstat (limited to 'ftplugin/zig.lua')
| -rw-r--r-- | ftplugin/zig.lua | 21 | 
1 files changed, 10 insertions, 11 deletions
| diff --git a/ftplugin/zig.lua b/ftplugin/zig.lua index 06217ddd..92b4120d 100644 --- a/ftplugin/zig.lua +++ b/ftplugin/zig.lua @@ -1,15 +1,14 @@  -- Because lspinstall don't support zig yet,  -- So we need zls preset in global lib --- Further custom install zls in  +-- 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, +require("lspconfig").zls.setup { +  root_dir = require("lspconfig").util.root_pattern(".git", "build.zig", "zls.json"), +  on_attach = require("lsp").common_on_attach,  } -require('lv-utils').define_augroups({ -    _zig_autoformat = { -        {'BufWritePre', '*.zig', 'lua vim.lsp.buf.formatting_sync(nil, 1000)'}, -        {'BufEnter', '*.zig', ':lua vim.api.nvim_buf_set_option(0, "commentstring", "// %s")'} -    } -}) -vim.cmd("setl expandtab tabstop=8 softtabstop=4 shiftwidth=4") +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" | 
