Skip to content

Commit

Permalink
Move execution of MagmaInitPost
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballs committed Jul 8, 2023
1 parent ff3deba commit 9f30a5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions rplugin/python3/magma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def _initialize_buffer(self, kernel_name: str) -> MagmaBuffer:
)

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

return magma

Expand Down
2 changes: 0 additions & 2 deletions rplugin/python3/magma/magmabuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ def __init__(

self.options = options

self._doautocmd("MagmaInitPost")

def _doautocmd(self, autocmd: str) -> None:
assert " " not in autocmd
self.nvim.command(f"doautocmd User {autocmd}")
Expand Down

0 comments on commit 9f30a5f

Please sign in to comment.