chg: Put pyright setup inside lsp_config.lua
This commit is contained in:
parent
da9612a94b
commit
d00bd92d4a
2 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,14 @@
|
|||
local lspconfig = require('lspconfig')
|
||||
lspconfig.pyright.setup {}
|
||||
|
||||
require 'lspconfig'.pyright.setup({
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
require'lspconfig'.pyright.setup({
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Reference in a new issue