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