From ed0a510abb9fe4e4c530dc7f9e170fa455184650 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 13 Jan 2026 13:59:09 +0000 Subject: [PATCH] Added lsp.nu --- dot_config/nushell/lsp.nu | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dot_config/nushell/lsp.nu diff --git a/dot_config/nushell/lsp.nu b/dot_config/nushell/lsp.nu new file mode 100644 index 0000000..f152ea3 --- /dev/null +++ b/dot_config/nushell/lsp.nu @@ -0,0 +1,36 @@ +$env.NU_LIB_DIRS = [ + ($env.FILE_PWD | path join "scripts"), + $env.FILE_PWD +] + +$env.NU_PLUGIN_DIRS = [ + ($nu.default-config-dir | path join "plugins") +] + +$env.ENV_CONVERSIONS = { + "PATH": { + from_string: { |s| $s | split row (char esep) | path expand --no-symlink } + to_string: { |v| $v | path expand --no-symlink | str join (char esep) } + } + "Path": { + from_string: { |s| $s | split row (char esep) | path expand --no-symlink } + to_string: { |v| $v | path expand --no-symlink | str join (char esep) } + } +} + +$env.config = { + show_banner: false + ls: { + use_ls_colors: false # Disabling colors is a small optimization for the LSP + } + completions: { + case_sensitive: false + quick: true + partial: true + algorithm: "prefix" + external: { + enable: true + max_results: 100 + } + } +}