diff --git a/rplugin/python3/copilot-plugin.py b/rplugin/python3/copilot-plugin.py index 0af6130b..ec9b4b5b 100644 --- a/rplugin/python3/copilot-plugin.py +++ b/rplugin/python3/copilot-plugin.py @@ -8,7 +8,7 @@ @pynvim.plugin -class CopilotAgentPlugin(object): +class CopilotPlugin(object): def __init__(self, nvim: pynvim.Nvim): self.nvim: MyNvim = MyNvim(nvim, PLUGIN_MAPPING_CMD, PLUGIN_AUTOCMD_CMD) self.vsplit_chat_handler = None diff --git a/rplugin/python3/mypynvim/core/buffer.py b/rplugin/python3/mypynvim/core/buffer.py index 9bf1f4c0..c11db7f7 100644 --- a/rplugin/python3/mypynvim/core/buffer.py +++ b/rplugin/python3/mypynvim/core/buffer.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Callable, Dict, LiteralString, Union +from typing import TYPE_CHECKING, Any, Callable, Dict, Union from pynvim.api import Buffer @@ -65,7 +65,7 @@ def lines( def clear(self): self.nvim.api.buf_set_lines(self.buf.handle, 0, -1, True, []) - def append(self, lines: list[str] | list[LiteralString]): + def append(self, lines: list[str] | list[Any]): self.nvim.api.buf_set_lines(self.buf.handle, -1, -1, True, lines) # extmark methods