lsp.servers.ast_grep
The ast_grep language server.
Type: submodule
Default:
{ }
Declared by:
lsp.servers.ast_grep.enable
Whether to enable ast_grep.
Type: boolean
Default:
false
Example:
true
Declared by:
lsp.servers.ast_grep.package
The ast_grep package to use.
Alternatively, ast_grep should be installed on your $PATH
.
Type: null or package
Default:
pkgs.ast-grep
Declared by:
lsp.servers.ast_grep.activate
Whether to call vim.lsp.enable()
for ast_grep.
Type: boolean
Default:
true
, unless the server’s name
is *
Example:
false
Declared by:
lsp.servers.ast_grep.name
The name to use for ast_grep.
Supplied to functions like vim.lsp.enable()
.
Type: string or raw lua code
Default:
"ast_grep"
Declared by:
lsp.servers.ast_grep.settings
Configurations for ast_grep.
Type: attribute set of anything
Default:
{ }
Example:
{
cmd = [
"clangd"
"--background-index"
];
filetypes = [
"c"
"cpp"
];
root_markers = [
"compile_commands.json"
"compile_flags.txt"
];
}
Declared by: