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 + } + } +}