mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 15:37:22 +00:00
nvim: US keyboard layout in Normal Mode
This commit is contained in:
parent
d1a8bd0e05
commit
e48187687a
1 changed files with 1 additions and 2 deletions
|
|
@ -140,9 +140,8 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
||||||
vim.api.nvim_create_autocmd('TermOpen', { pattern = '*', command = 'setlocal nonumber' })
|
vim.api.nvim_create_autocmd('TermOpen', { pattern = '*', command = 'setlocal nonumber' })
|
||||||
|
|
||||||
-- Switch the keyboard layout to English (US) when leaving Insert Mode
|
-- Switch the keyboard layout to English (US) when leaving Insert Mode
|
||||||
local switch_layout_command = "silent !setxkbmap -layout 'us,ru' -option 'grp:caps_toggle'"
|
|
||||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||||
command = switch_layout_command
|
command = "silent !xkb-switch -s us"
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[ cfg_keymaps: General keymaps ]]
|
--[[ cfg_keymaps: General keymaps ]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue