diff options
author | xengineering <me@xengineering.eu> | 2024-02-26 16:14:38 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-02-26 16:25:35 +0100 |
commit | 10eb7b8868675cd8f96fc54c69a47c2ed3cf3009 (patch) | |
tree | b6ce878678ff798e0ade103a79c1ede87f97cbc3 /nvim/init.lua | |
parent | 7d169d63bfc11ba59d77e85121de443cb9c0974a (diff) | |
download | dotfiles-10eb7b8868675cd8f96fc54c69a47c2ed3cf3009.tar dotfiles-10eb7b8868675cd8f96fc54c69a47c2ed3cf3009.tar.zst dotfiles-10eb7b8868675cd8f96fc54c69a47c2ed3cf3009.zip |
nvim: Switch from Vimscript to Lua
Spending time learning Lua has more advantages than learning Vimscript
since Lua is used in many applications while Vimscript is just for
editor configuration.
Diffstat (limited to 'nvim/init.lua')
-rw-r--r-- | nvim/init.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..3542221 --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,21 @@ +vim.cmd.syntax('on') +vim.cmd.filetype({'plugin', 'indent', 'on'}) + +vim.opt.mouse = nil +vim.opt.tabstop = 4 +vim.opt.expandtab = false +vim.opt.number = true +vim.opt.shiftwidth = 4 +vim.opt.autoindent = true +vim.opt.spelllang = {'en', 'de'} +vim.opt.colorcolumn = {81} +vim.opt.encoding = 'utf-8' +vim.opt.fileencodings = {'utf-8'} +vim.opt.list = true +vim.opt.listchars = {tab = '→ ', nbsp = '␣', trail = '•'} + +vim.keymap.set('n', '<F7>', ':tabp <LF>') +vim.keymap.set('n', '<F8>', ':tabn <LF>') + +vim.keymap.set('n', '<F5>', ':%!xxd -r <LF>') +vim.keymap.set('n', '<F6>', ':%!xxd <LF>') |