Skip to content

Setting language in init.lua #14007

Closed Answered by fsouza
uyha asked this question in Q&A
Feb 24, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can use the function vim.cmd to run commands, so for language you could do:

vim.cmd('lan en_US.utf-8')

(on single arg function-calls, parenthesis are optional, so you could also do vim.cmd 'lan en_US.utf-8' or vim.cmd'lan en_US.utf-8' if that's a style you prefer)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@uyha
Comment options

@fsouza
Comment options

Answer selected by uyha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants