Skip to content

Commit

Permalink
feat: neovim client-side check and configure completion callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Dec 12, 2024
1 parent 57e209f commit 43a0e2d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion editors/neovim/plugins/tinymist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
},
},
},
Expand Down

0 comments on commit 43a0e2d

Please sign in to comment.