3 ms·
I'm interested in what modifications you have made. I've been trying LunarVim a bit for the last week and am on the fence about going back to SpaceVim or just
by linsomniac 5y ago
I'm interested in what modifications you have made. I've been trying LunarVim a bit for the last week and am on the fence about going back to SpaceVim or just bare neovim. Not sure, still evaluating...
- mmgutz 5y agoI want to like LunarVim but the everything-lua is a bit overboard. Compare this ` vim.api.nvim_set_keymap('n', '<S-TAB>', ':bprevious<CR>', {noremap = true, silent = true})` to `nnoremap <silent> <S-TAB> :bprevious<CR>` Why convert every single line of vimscript to a noisier lua statement? The Packer manager seems a step back from vim-plug. Your configuration file is no longer the source of truth. Packer uses a global site directory for plugin as opposed to a local directory like vim-plug. Guess what? Neovim, paq also uses that directory. It's like the old days of plugins of installing everything globally. I had to do this after making a configuration change: :PackerSync, exit neovim, delete cache file, restart neovim, :PackerCompile. Believe me, forgetting a step has been an endless source of frustration.
- selectnull 5y agoI have just started to play with neovim and the first thing I did was to define a function: function bindKey(mode, keys, command, options) options = options or {noremap = true, silent = true} return vim.api.nvim_set_keymap(mode, keys, command, options) end With that, remapping looks like this: bindKey('n', '<Tab>', ':bnext<CR>') Which is in my opinion better than Vim syntax. I definitely see the potential in having Lua as scripting language.
- mmgutz 5y agoDon't get me wrong I prefer lua to vimscript in almost every way. For migrating my existing settings, I didn't see the need to translate to lua, `vim.api.nvim_exec([[ ... ]])` and `vim.cmd('source ' .. path_to_vim_file)` work wonderfully. It's a joy to use lua for refactoring the remaining logic.
- alexmcc81 5y agoI agree about the 'everything in lua' config. I've found it frustrating.