feat: add python lsp and indentation
This commit is contained in:
1 parent
b9326f4d2c
commit
e71b388358
3 files changed
+16
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
return { "set expandtab on", "set tabwidth 4" }
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
name = "basedpyright",
|
||||
cmd = "basedpyright-langserver --stdio",
|
||||
roots = { "pyproject.toml", "setup.py", "requirements.txt", ".git" },
|
||||
}
|
||||
@@ -18,7 +18,15 @@ plug.plugins.lspc.message_level = 2
|
||||
require("set")
|
||||
require("remap")
|
||||
|
||||
local filetypes = { "csharp", "html", "java", "javascript", "json", "lua" }
|
||||
local filetypes = {
|
||||
"csharp",
|
||||
"html",
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"python",
|
||||
}
|
||||
settings = {}
|
||||
for _, syntax in ipairs(filetypes) do
|
||||
settings[syntax] = require("ftplugin/" .. syntax)
|
||||
@@ -31,6 +39,7 @@ local servers = {
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
"python",
|
||||
"typescript",
|
||||
}
|
||||
local ls_map = plug.plugins.lspc.ls_map
|
||||
|
||||
Reference in new issue
Block a user