chg: Put pyright setup inside lsp_config.lua

This commit is contained in:
Sayantan Santra 2024-04-02 01:37:22 -05:00
parent da9612a94b
commit d00bd92d4a
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
2 changed files with 10 additions and 12 deletions

View file

@ -1,5 +1,14 @@
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
lspconfig.pyright.setup {}
require 'lspconfig'.pyright.setup({
settings = {
python = {
analysis = {
typeCheckingMode = "off"
}
}
}
})
lspconfig.lua_ls.setup({ lspconfig.lua_ls.setup({
settings = { settings = {

View file

@ -1,11 +0,0 @@
require'lspconfig'.pyright.setup({
on_attach = on_attach,
flags = lsp_flags,
settings = {
python = {
analysis = {
typeCheckingMode = "off"
}
}
}
})