File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed
Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,6 @@ vim.api.nvim_create_autocmd("ModeChanged", {
6767 pattern = " *" ,
6868 callback = notify_vscode_mode ,
6969})
70-
71- -- Notify on initial load
72- vim .api .nvim_create_autocmd ({ " VimEnter" }, {
73- callback = notify_vscode_mode ,
74- })
7570```
7671
7772## Tweaking to Your Taste
Original file line number Diff line number Diff line change 4242 "category" : " Neovim UI+" ,
4343 "title" : " Set Neovim Mode" ,
4444 "icon" : " res/vim.svg" ,
45- "when" : false
45+ "when" : " neovim.init "
4646 },
4747 {
4848 "command" : " nvim-ui-plus.showCurrentMode" ,
4949 "category" : " Neovim UI+" ,
5050 "title" : " Check Current Neovim Mode" ,
5151 "icon" : " res/vim.svg" ,
52- "when" : false
52+ "when" : " neovim.init "
5353 }
5454 ],
5555 "configuration" : {
Original file line number Diff line number Diff line change 11import { defineExtension , useCommand , useDisposable } from 'reactive-vscode'
22import { extensions , window } from 'vscode'
3- // import { registerCommands } from './commands'
43import { currentMode , setupNeovimModeManager } from './neovimModeManager'
54import { setupThemeManager } from './themeManager'
65import { logger } from './utils'
@@ -21,9 +20,6 @@ const { activate, deactivate } = defineExtension(async () => {
2120 // Wait for the extension to be activated by VSCode
2221 await vscode_nvim_ext . activate ( )
2322 logger . info ( 'vscode-neovim extension is active' )
24-
25- // Continue with the rest of your extension initialization
26- // ...
2723 }
2824 catch ( err ) {
2925 logger . error ( 'Failed to wait for vscode-neovim extension:' , err )
@@ -39,9 +35,6 @@ const { activate, deactivate } = defineExtension(async () => {
3935 const themeManager = setupThemeManager ( )
4036 useDisposable ( { dispose : themeManager } )
4137
42- // Register command to update mode from Neovim
43- // registerCommands()
44- //
4538 // Register a command to receive mode updates from Neovim
4639 useCommand ( 'nvim-ui-plus.setMode' , ( args : { mode : string } ) => {
4740 if ( ! args || typeof args . mode !== 'string' ) {
You can’t perform that action at this time.
0 commit comments