Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: neovim client-side check and configure completion callbacks #993

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading