use keymap state for layer visibility (#26246)
This commit is contained in:
parent
18b9cec50d
commit
8dd6448c90
17 changed files with 418 additions and 222 deletions
|
|
@ -219,6 +219,14 @@ export function createTuiApi(input: Input): TuiPluginApi {
|
|||
},
|
||||
},
|
||||
keymap: input.keymap,
|
||||
mode: {
|
||||
current() {
|
||||
return Keymap.getOpencodeModeStack(input.keymap).current()
|
||||
},
|
||||
push(mode) {
|
||||
return Keymap.getOpencodeModeStack(input.keymap).push(mode)
|
||||
},
|
||||
},
|
||||
route: {
|
||||
register(list) {
|
||||
return routeRegister(input.routes, list, input.bump)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue