fix(lsp): remove unnecessary config field
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
init_options = {
|
init_options = {
|
||||||
buildDirectory = "build",
|
buildDirectory = "build",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
init_options = {
|
init_options = {
|
||||||
completion = {
|
completion = {
|
||||||
disableSnippets = true,
|
disableSnippets = true,
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
init_options = {
|
init_options = {
|
||||||
settings = {
|
settings = {
|
||||||
xml = {
|
xml = {
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
settings = {
|
settings = {
|
||||||
others = {
|
others = {
|
||||||
disableInlayHints = true,
|
disableInlayHints = true,
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
check = {
|
check = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
cmd = {
|
cmd = {
|
||||||
@@ -7,7 +5,6 @@ return {
|
|||||||
},
|
},
|
||||||
filetypes = { "xml" },
|
filetypes = { "xml" },
|
||||||
root_markers = { ".git" },
|
root_markers = { ".git" },
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
init_options = {
|
init_options = {
|
||||||
logLevel = "warning",
|
logLevel = "warning",
|
||||||
numWorkers = 4,
|
numWorkers = 4,
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
local lsp = require("lsp")
|
|
||||||
|
|
||||||
---@type vim.lsp.Config
|
---@type vim.lsp.Config
|
||||||
return {
|
return {
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
settings = {
|
settings = {
|
||||||
zls = {
|
zls = {
|
||||||
warn_style = true,
|
warn_style = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user