-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlspconfig.lua
More file actions
46 lines (46 loc) · 1.25 KB
/
lspconfig.lua
File metadata and controls
46 lines (46 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
cssls = {},
css_variables = {},
emmet_ls = {},
basedpyright = {
settings = {
basedpyright = {
disableOrganizeImports = true,
analysis = {
autoImportCompletions = true,
useLibraryCodeForTypes = true,
useTypingExtensions = true,
diagnosticSeverityOverrides = {
-- disabling things that double up with Ruff
reportPrivateUsage = false,
reportUnusedParameter = false,
},
},
},
},
},
taplo = {
settings = {
schema = { enabled = true },
formatter = {
reorderKeys = true,
alignEntries = true,
indentTables = true,
indentEntries = true,
reorderArrays = true,
reorderInlineTables = true,
},
},
},
jsonls = {
before_init = function(_, new_config)
new_config.settings.json.schemas = new_config.settings.json.schemas or {}
vim.list_extend(new_config.settings.json.schemas, require("schemastore").json.schemas())
end,
},
},
},
}