Skip to content

Commit b79a2c3

Browse files
authored
Merge pull request ThePrimeagen#5 from luizcorreia/patch-1
Fix Undefined global 'vim'
2 parents bf50840 + db3406f commit b79a2c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

after/plugin/lsp.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ lsp.ensure_installed({
99
'rust_analyzer',
1010
})
1111

12+
-- Fix Undefined global 'vim'
13+
lsp.configure('sumneko_lua', {
14+
settings = {
15+
Lua = {
16+
diagnostics = {
17+
globals = { 'vim' }
18+
}
19+
}
20+
}
21+
})
22+
23+
1224
local cmp = require('cmp')
1325
local cmp_select = {behavior = cmp.SelectBehavior.Select}
1426
local cmp_mappings = lsp.defaults.cmp_mappings({

0 commit comments

Comments
 (0)