Skip to content

docs: Add zig lsp options #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion docs/extras/lang/zig.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,35 @@ opts = {
"neovim/nvim-lspconfig",
opts = {
servers = {
zls = {},
zls = {
settings = {
zls = {
enable_snippets = true, -- Enables snippet completions when the client supports them
enable_argument_placeholders = true, -- Enables function argument placeholder completions
completion_label_details = true, -- Shows function signature in completion results
enable_build_on_save = nil, -- Enables build-on-save diagnostics if a 'check' step is present
build_on_save_args = {}, -- Arguments to pass when running build-on-save
semantic_tokens = "full", -- Level of semantic tokens (none, partial, full)
inlay_hints_show_variable_type_hints = true, -- Enables inlay hints for variable types
inlay_hints_show_struct_literal_field_type = true, -- Enables inlay hints for struct and union literal fields
inlay_hints_show_parameter_name = true, -- Enables inlay hints for parameter names
inlay_hints_show_builtin = true, -- Enables inlay hints for builtin functions
inlay_hints_exclude_single_argument = true, -- Disables inlay hints for single argument calls
inlay_hints_hide_redundant_param_names = false, -- Does not hide redundant parameter names
inlay_hints_hide_redundant_param_names_last_token = false, -- Does not hide redundant param names in complex expressions
force_autofix = false, -- Does not force auto-fix for unsupported editors
warn_style = false, -- Disables warnings for style guideline mismatches
highlight_global_var_declarations = false, -- Does not highlight global variable declarations
skip_std_references = false, -- Includes standard library references in searches
prefer_ast_check_as_child_process = true, -- Uses 'zig ast-check' as a child process if preferred
builtin_path = nil, -- Path to 'builtin' module if overridden
zig_lib_path = nil, -- Custom Zig library path if specified
zig_exe_path = nil, -- Path to the Zig executable if specified
build_runner_path = nil, -- Custom build runner path
global_cache_path = nil, -- Path for Zig's cache directory
},
},
},
},
},
}
Expand Down