nvim: US keyboard layout in Normal Mode

This commit is contained in:
He4eT 2025-02-24 01:57:47 +01:00
commit e6e1df948f

View file

@ -139,6 +139,12 @@ vim.api.nvim_create_autocmd('BufEnter', {
-- Disable line numbers for terminal buffers -- Disable line numbers for terminal buffers
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
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 ]] --[[ cfg_keymaps: General keymaps ]]
-- Remap for dealing with word wrap -- Remap for dealing with word wrap