feat: add python lsp and indentation

This commit is contained in:
anth64 committed 2026-11-15 10:18:02 +01:00
1 parent b9326f4d2c
commit e71b388358
3 files changed
+16 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
return { "set expandtab on", "set tabwidth 4" }
+5
View File
@@ -0,0 +1,5 @@
return {
name = "basedpyright",
cmd = "basedpyright-langserver --stdio",
roots = { "pyproject.toml", "setup.py", "requirements.txt", ".git" },
}
+10 -1
View File
@@ -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