feat: Only show completion for available types (#36)
This commit is contained in:
@@ -132,7 +132,13 @@ function neogen.jumpable(reverse)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function neogen.match_commands()
|
function neogen.match_commands()
|
||||||
|
local language = neogen.configuration.languages[vim.bo.filetype]
|
||||||
|
|
||||||
|
if not language or not language.parent then
|
||||||
return { "func", "class", "type", "file" }
|
return { "func", "class", "type", "file" }
|
||||||
|
end
|
||||||
|
|
||||||
|
return vim.tbl_keys(language.parent)
|
||||||
end
|
end
|
||||||
|
|
||||||
function neogen.generate_command()
|
function neogen.generate_command()
|
||||||
|
|||||||
Reference in New Issue
Block a user