Skip to content

Commit 9f30a5f

Browse files
committed
Move execution of MagmaInitPost
1 parent ff3deba commit 9f30a5f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

rplugin/python3/magma/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def _initialize_buffer(self, kernel_name: str) -> MagmaBuffer:
149149
)
150150

151151
self.buffers[self.nvim.current.buffer.number] = magma
152+
magma._doautocmd("MagmaInitPost")
152153

153154
return magma
154155

rplugin/python3/magma/magmabuffer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def __init__(
6363

6464
self.options = options
6565

66-
self._doautocmd("MagmaInitPost")
67-
6866
def _doautocmd(self, autocmd: str) -> None:
6967
assert " " not in autocmd
7068
self.nvim.command(f"doautocmd User {autocmd}")

0 commit comments

Comments
 (0)