aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/insert-layout/autoload/insert_layout.vim
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/insert-layout/autoload/insert_layout.vim')
-rw-r--r--bundle/insert-layout/autoload/insert_layout.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundle/insert-layout/autoload/insert_layout.vim b/bundle/insert-layout/autoload/insert_layout.vim
index e9f53b4..8d7263c 100644
--- a/bundle/insert-layout/autoload/insert_layout.vim
+++ b/bundle/insert-layout/autoload/insert_layout.vim
@@ -1,5 +1,7 @@
vim9script
+# Friendly names for the ones used by 'xkbswitch'. The keys are used as
+# arguments to the `:InsertLayout` command.
const layout_names = {
us: 'US',
qwazerty: 'QWAZERTY2',
@@ -7,6 +9,8 @@ const layout_names = {
dvorak: 'Dvorak',
}
+# Used to store the current layout prior to insertion so it can be restored
+# when leaving insert mode.
var normal_layout: string
def IsLayoutSwitcherAvailable(): number