Use require("neocodeium").setup(options) to configure the plugin. Key options include:
enabled (boolean): Whether the plugin is active. If false, the windsurf server won't start.bin (string|nil): Path to a custom windsurf server binary.manual (boolean): If true, autosuggestions are disabled; use cycle_or_complete() to show them manually.server (table): Contains api_url and portal_url for Enterprise mode.show_label (boolean): Whether to show the suggestion count in the line number column.debounce (boolean): If true, enables suggestions debounce.max_lines (number): Max lines parsed from loaded buffers (0 to disable non-current buffer parsing, -1 for all).silent (boolean): If true, suppresses non-important messages.disable_in_special_buftypes (boolean): If true, disables suggestions in special buftypes (e.g., nofile).log_level (string): One of "trace", "debug", "info", "warn", "error".single_line (table): Configuration for single-line mode. enabled (boolean) collapses multi-line suggestions into one line.filter (function): A function function(bufnr) end that returns true to enable or false to disable suggestions for a buffer.filetypes (table): A list of filetypes to disable suggestions for (e.g., { help = false, gitcommit = false }).root_dir (table): List of patterns to detect the workspace root directory.
-- NeoCodeium Configuration
require("neocodeium").setup({
enabled = true,
bin = nil,
manual = false,
server = {
api_url = nil,
portal_url = nil,
},
show_label = true,
debounce = false,
max_lines = 10000,
silent = false,
disable_in_special_buftypes = true,
log_level = "warn",
single_line = {
enabled = false,
label = "...",
},
filter = function(bufnr) return true end,
filetypes = {
help = false,
gitcommit = false,
gitrebase = false,
["."] = false,
},
root_dir = { ".bzr", ".git", ".hg", ".svn", "_FOSSIL_", "package.json" }
})