Setup debug adapters for codelldb, debugpy and gopls. Also remove
nvim-dap-profiles :( Apparently there is a way to do the same thing using launch.json built into dap, much better than my solution.
This commit is contained in:
parent
b7796e9a5e
commit
472208ea95
8 changed files with 95 additions and 7 deletions
21
home/.config/nvim/lua/lsp/servers/pyright.lua
Normal file
21
home/.config/nvim/lua/lsp/servers/pyright.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
cmd = { "pyright-langserver", "--stdio" },
|
||||
filetypes = { "python", "py" },
|
||||
root_markers = {
|
||||
"pyproject.toml",
|
||||
"setup.py",
|
||||
"setup.cfg",
|
||||
"requirements.txt",
|
||||
"Pipfile",
|
||||
"pyrightconfig.json",
|
||||
},
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue