This commit is contained in:
root
2025-08-10 20:24:22 +00:00
commit f470e78d1c
75 changed files with 4408 additions and 0 deletions

3
after/lsp/clangd.lua Normal file
View File

@@ -0,0 +1,3 @@
return {
filetypes = { "c", "cpp", "cc" },
}

8
after/lsp/ltex.lua Normal file
View File

@@ -0,0 +1,8 @@
return {
filetypes = { "text", "plaintex", "tex", "markdown" },
settings = {
ltex = {
language = "en",
},
},
}

13
after/lsp/lua_ls.lua Normal file
View File

@@ -0,0 +1,13 @@
-- settings for lua-language-server can be found on https://luals.github.io/wiki/settings
return {
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
hint = {
enable = true,
},
},
},
}

43
after/lsp/pyright.lua Normal file
View File

@@ -0,0 +1,43 @@
local new_capability = {
-- remove some of the diagnostics that duplicates those from ruff
textDocument = {
publishDiagnostics = {
tagSupport = {
valueSet = { 2 },
},
},
hover = {
contentFormat = { "plaintext" },
dynamicRegistration = true,
},
},
}
return {
cmd = { "delance-langserver", "--stdio" },
settings = {
pyright = {
-- disable import sorting and use ruff for this
disableOrganizeImports = true,
disableTaggedHints = false,
},
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
typeCheckingMode = "standard",
useLibraryCodeForTypes = true,
diagnosticSeverityOverrides = {
deprecateTypingAliases = false,
},
inlayHints = {
callArgumentNames = "partial",
functionReturnTypes = true,
pytestParameters = true,
variableTypes = true,
},
},
},
},
capabilities = new_capability,
}

8
after/lsp/ruff.lua Normal file
View File

@@ -0,0 +1,8 @@
-- Settings can be found here: https://docs.astral.sh/ruff/editors/settings/
return {
init_options = {
settings = {
organizeImports = true,
},
},
}