mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: US keyboard layout in Normal Mode
This commit is contained in:
parent
9ee8479d21
commit
e6e1df948f
1 changed files with 6 additions and 0 deletions
|
|
@ -139,6 +139,12 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
|||
-- Disable line numbers for terminal buffers
|
||||
vim.api.nvim_create_autocmd('TermOpen', { pattern = '*', command = 'setlocal nonumber' })
|
||||
|
||||
-- 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", {
|
||||
command = switch_layout_command
|
||||
})
|
||||
|
||||
--[[ cfg_keymaps: General keymaps ]]
|
||||
|
||||
-- Remap for dealing with word wrap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue