diff --git a/editors/neovim/plugins/tinymist.lua b/editors/neovim/plugins/tinymist.lua index f9a7edfde..0f72ad1e6 100644 --- a/editors/neovim/plugins/tinymist.lua +++ b/editors/neovim/plugins/tinymist.lua @@ -26,7 +26,27 @@ return { return vim.fn.getcwd() end, --- See [Tinymist Server Configuration](https://github.com/Myriad-Dreamin/tinymist/blob/main/Configuration.md) for references. - settings = {} + settings = { + + -- Please don't edit following internal settings if you don't know what you are doing. + -- Neovim 0.9.1 supported these builitin commands + -- editor.action.triggerSuggest + triggerSuggest = vim.fn.has("nvim-0.9.1"), + -- editor.action.triggerParameterHints + triggerParameterHints = vim.fn.has("nvim-0.9.1"), + -- tinymist.triggerSuggestAndParameterHints which combines the above two commands. + triggerSuggestAndParameterHints = vim.fn.has("nvim-0.9.1"), + }, + -- todo: this is not a correct implementation + commands = { + "tinymist.triggerSuggestAndParameterHints" = { + function() + vscode_neovim.action("editor.action.triggerSuggest") + vscode_neovim.action("editor.action.triggerParameterHints") + end, + desc = "Trigger Suggest and Parameter Hints", + }, + }, }, }, },