mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-21 16:54:06 +02:00
Compare commits
1 Commits
customized
...
customized
Author | SHA1 | Date | |
---|---|---|---|
a593539d9d
|
@@ -20,7 +20,7 @@ ideaVersion=2025.1
|
|||||||
# Values for type: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type
|
# Values for type: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type
|
||||||
ideaType=IC
|
ideaType=IC
|
||||||
instrumentPluginCode=true
|
instrumentPluginCode=true
|
||||||
version=chylex-48
|
version=chylex-46
|
||||||
javaVersion=21
|
javaVersion=21
|
||||||
remoteRobotVersion=0.11.23
|
remoteRobotVersion=0.11.23
|
||||||
antlrVersion=4.10.1
|
antlrVersion=4.10.1
|
||||||
|
@@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2003-2023 The IdeaVim authors
|
|
||||||
*
|
|
||||||
* Use of this source code is governed by an MIT-style
|
|
||||||
* license that can be found in the LICENSE.txt file or at
|
|
||||||
* https://opensource.org/licenses/MIT.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.maddyhome.idea.vim.vimscript.model.functions.handlers
|
|
||||||
|
|
||||||
import com.intellij.codeInsight.completion.CompletionService
|
|
||||||
import com.intellij.vim.annotations.VimscriptFunction
|
|
||||||
import com.maddyhome.idea.vim.api.ExecutionContext
|
|
||||||
import com.maddyhome.idea.vim.api.VimEditor
|
|
||||||
import com.maddyhome.idea.vim.vimscript.model.VimLContext
|
|
||||||
import com.maddyhome.idea.vim.vimscript.model.datatypes.VimDataType
|
|
||||||
import com.maddyhome.idea.vim.vimscript.model.datatypes.VimInt
|
|
||||||
import com.maddyhome.idea.vim.vimscript.model.expressions.Expression
|
|
||||||
import com.maddyhome.idea.vim.vimscript.model.functions.FunctionHandler
|
|
||||||
|
|
||||||
@VimscriptFunction(name = "pumvisible")
|
|
||||||
internal class PopupMenuVisibleFunctionHandler : FunctionHandler() {
|
|
||||||
override val minimumNumberOfArguments = 0
|
|
||||||
override val maximumNumberOfArguments = 0
|
|
||||||
|
|
||||||
override fun doFunction(
|
|
||||||
argumentValues: List<Expression>,
|
|
||||||
editor: VimEditor,
|
|
||||||
context: ExecutionContext,
|
|
||||||
vimContext: VimLContext,
|
|
||||||
): VimDataType {
|
|
||||||
return if (CompletionService.getCompletionService().currentCompletion == null)
|
|
||||||
VimInt.ZERO
|
|
||||||
else
|
|
||||||
VimInt.ONE
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"has": "com.maddyhome.idea.vim.vimscript.model.functions.handlers.HasFunctionHandler",
|
"has": "com.maddyhome.idea.vim.vimscript.model.functions.handlers.HasFunctionHandler"
|
||||||
"pumvisible": "com.maddyhome.idea.vim.vimscript.model.functions.handlers.PopupMenuVisibleFunctionHandler"
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user