lsp updates
This commit is contained in:
parent
9c3e8ec512
commit
3bf0f1e8e6
3 changed files with 43 additions and 24 deletions
|
|
@ -12,25 +12,40 @@ vim.lsp.config("pylsp", {
|
|||
})
|
||||
|
||||
vim.lsp.config('basedpyright', {
|
||||
cmd = { 'basedpyright-langserver', '--stdio' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
'pyrightconfig.json',
|
||||
'.git',
|
||||
},
|
||||
settings = {
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = 'openFilesOnly',
|
||||
typeCheckingMode = 'basic',
|
||||
},
|
||||
},
|
||||
},
|
||||
cmd = { 'basedpyright-langserver', '--stdio' },
|
||||
filetypes = { 'python' },
|
||||
root_markers = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
'pyrightconfig.json',
|
||||
'.git',
|
||||
},
|
||||
settings = {
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
|
||||
diagnosticSeverityOverrides = {
|
||||
reportAny = false,
|
||||
reportOptionalOperand = "warning",
|
||||
reportOptionalMemberAccess = false,
|
||||
reportOptionalSubscript = false,
|
||||
reportAttributeAccessIssue = false,
|
||||
reportMissingTypeArgument = false,
|
||||
reportMissingTypeStubs = false,
|
||||
reportUnknownArgumentType = false,
|
||||
reportUnknownMemberType = false,
|
||||
reportUnknownParameterType = false,
|
||||
reportUnknownVariableType = false,
|
||||
reportUnusedCallResult = false,
|
||||
},
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = 'openFilesOnly',
|
||||
typeCheckingMode = 'basic',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
vim.pack.add{"https://github.com/echasnovski/nvim-mini/mini.nvim"}
|
||||
vim.pack.add{"https://github.com/nvim-mini/mini.nvim"}
|
||||
|
||||
require("mini.ai").setup()
|
||||
require("mini.surround").setup()
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@
|
|||
"src": "https://github.com/mason-org/mason.nvim"
|
||||
},
|
||||
"mini.nvim": {
|
||||
"rev": "6e885e4c27743ae6bf5957ea78ce86c032835f09",
|
||||
"src": "https://github.com/echasnovski/mini.nvim"
|
||||
"rev": "72b0194c56c984476c5975b62eb340fd1aa1686a",
|
||||
"src": "https://github.com/nvim-mini/mini.nvim"
|
||||
},
|
||||
"nvim-dap": {
|
||||
"rev": "5860c7c501eb428d3137ee22c522828d20cca0b3",
|
||||
|
|
@ -92,6 +92,10 @@
|
|||
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
|
||||
"src": "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
"prettier.nvim": {
|
||||
"rev": "ca6452de1accc68a1062e72f58679caa488b501a",
|
||||
"src": "https://github.com/MunifTanjim/prettier.nvim"
|
||||
},
|
||||
"telescope.nvim": {
|
||||
"rev": "83a3a713d6b2d2a408491a1b959e55a7fa8678e8",
|
||||
"src": "https://github.com/nvim-telescope/telescope.nvim"
|
||||
|
|
|
|||
Loading…
Reference in a new issue