0

I've got the problem that the neovim language is set to German for some reason even though I only use a German keyboard layout (see this question). Unfortunately I am using lua for configuring neovim (the linked question provides an answer for init.vim configs) and even though I tried some things, I cannot figure out how to convert language en_US to valid lua code.

1
0

Simply use vim.api.nvim_exec() (or vim.cmd() if your NeoVim version still doesn't have it) to run Vimscript commands from Lua.

vim.api.nvim_exec('language en_US')

That should do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.