Update README. Indicate string is evaluated by nushell

This commit is contained in:
Leonhard Kipp 2024-04-21 10:59:38 +02:00
parent c1a002a3db
commit 64e1677db3

View file

@ -53,10 +53,10 @@ require'nu'.setup{
use_lsp_features = true, -- requires https://github.com/jose-elias-alvarez/null-ls.nvim
-- lsp_feature: all_cmd_names is the source for the cmd name completion.
-- It can be
-- * a string, which is interpreted as a shell command and the returned list is the source for completions (requires plenary.nvim)
-- * a string, which is evaluated by nushell and the returned list is the source for completions (requires plenary.nvim)
-- * a list, which is the direct source for completions (e.G. all_cmd_names = {"echo", "to csv", ...})
-- * a function, returning a list of strings and the return value is used as the source for completions
all_cmd_names = [[nu -c 'help commands | get name | str join "\n"']]
all_cmd_names = [[help commands | get name | str join "\n"]]
}
```