summaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/zls.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-27 14:12:18 +0300
committerKyren223 <Kyren223@proton.me>2025-04-27 14:12:18 +0300
commit21107f040b1579c1139ef0ca2ce993603d24826f (patch)
treeec72798215c80179689b9a92d1f147308771244d /.config/nvim/lsp/zls.lua
parent49be66e67afbbe27b4d93ec1ff39bc6c1d97e3ef (diff)
Massive nvim refactor, migrated from nvim-lspconfig to NVIM 0.11 lsp/*
also migrated most LSP clients to nix rather than mason
Diffstat (limited to '.config/nvim/lsp/zls.lua')
-rw-r--r--.config/nvim/lsp/zls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lsp/zls.lua b/.config/nvim/lsp/zls.lua
new file mode 100644
index 0000000..32120d3
--- /dev/null
+++ b/.config/nvim/lsp/zls.lua
@@ -0,0 +1,24 @@
+-- https://github.com/zigtools/zls
+
+return {
+ mason = false,
+ cmd = { 'zls' },
+ filetypes = { 'zig', 'zir' },
+ root_markers = { 'zls.json', 'build.zig', '.git' },
+ workspace_required = false,
+ settings = {
+ zls = {
+ enable_build_on_save = true,
+ build_on_save_args = {},
+ enable_argument_placeholders = false,
+ warn_style = true,
+
+ inlay_hints_show_variable_type_hints = true,
+ inlay_hints_show_struct_literal_field_type = true,
+ inlay_hints_show_parameter_name = true,
+ inlay_hints_show_builtin = true,
+ inlay_hints_hide_redundant_param_names = true,
+ inlay_hints_hide_redundant_param_names_last_token = true,
+ },
+ },
+}