add python lsp
This commit is contained in:
parent
e7ff24fcc2
commit
c5faea761d
|
|
@ -7,18 +7,9 @@ lsp.ensure_installed({
|
||||||
'eslint',
|
'eslint',
|
||||||
'sumneko_lua',
|
'sumneko_lua',
|
||||||
'rust_analyzer',
|
'rust_analyzer',
|
||||||
|
'pyright',
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fix Undefined global 'vim'
|
|
||||||
lsp.configure('sumneko_lua', {
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
diagnostics = {
|
|
||||||
globals = { 'vim' }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
|
|
@ -49,6 +40,8 @@ lsp.set_preferences({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
lsp.on_attach(function(client, bufnr)
|
||||||
local opts = {buffer = bufnr, remap = false}
|
local opts = {buffer = bufnr, remap = false}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue