Trying to set mapleader before installing a plugin #1301
Unanswered
bdpierce777
asked this question in
Q&A
Replies: 1 comment
-
OK, cool! 30 minutes after posting this, I tried the following and it works (no errors anyway ;-) { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to follow two different tutorials on setting up an IDE and am stoked, but I'm stuck on one small problem.
The instructions were to have the mapleader set when the plugin loads.
The is just to add the lines to set the mapleader before the plugin loads, but this creates the error:
"}" expected near "="
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require('lazy').setup({
-- other plugins
{
vim.g.mapleader = '\'
vim.g.maplocalleader = '\'
'vimoutliner/vimoutliner'
},
}, {})
The other attempt was to do this after the setup loads:
vim.g.mapleader = '\'
vim.g.maplocalleader = '\'
require('vimoutliner/vimoutliner')
-- which almost seems to work except it seems to interpret the (ancient vimscript) plugin as lua
Any help would be greatly appreciated!!!
Beta Was this translation helpful? Give feedback.
All reactions