init
This commit is contained in:
3
after/lsp/clangd.lua
Normal file
3
after/lsp/clangd.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
filetypes = { "c", "cpp", "cc" },
|
||||
}
|
||||
8
after/lsp/ltex.lua
Normal file
8
after/lsp/ltex.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
filetypes = { "text", "plaintex", "tex", "markdown" },
|
||||
settings = {
|
||||
ltex = {
|
||||
language = "en",
|
||||
},
|
||||
},
|
||||
}
|
||||
13
after/lsp/lua_ls.lua
Normal file
13
after/lsp/lua_ls.lua
Normal 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
43
after/lsp/pyright.lua
Normal 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
8
after/lsp/ruff.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Settings can be found here: https://docs.astral.sh/ruff/editors/settings/
|
||||
return {
|
||||
init_options = {
|
||||
settings = {
|
||||
organizeImports = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user