1

Refresh generated neovim config

This commit is contained in:
2024-07-14 21:12:36 +02:00
parent f215ce2ab5
commit 00464e0e65
731 changed files with 6780 additions and 31110 deletions

View File

@ -1,9 +1,5 @@
local util = require 'lspconfig.util'
local default_capabilities = vim.lsp.protocol.make_client_capabilities()
default_capabilities.textDocument.semanticTokens = vim.NIL
default_capabilities.workspace.semanticTokens = vim.NIL
return {
default_config = {
filetypes = { 'arduino' },
@ -11,7 +7,14 @@ return {
cmd = {
'arduino-language-server',
},
capabilities = default_capabilities,
capabilities = {
textDocument = {
semanticTokens = vim.NIL,
},
workspace = {
semanticTokens = vim.NIL,
},
},
},
docs = {
description = [[

View File

@ -14,6 +14,7 @@ return {
'astro',
'svelte',
'vue',
'css',
},
root_dir = util.root_pattern('biome.json', 'biome.jsonc'),
single_file_support = false,

View File

@ -1,9 +1,6 @@
local util = require 'lspconfig.util'
local lsp = vim.lsp
local api = vim.api
local default_capabilities = lsp.protocol.make_client_capabilities()
default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' }
local elm_root_pattern = util.root_pattern 'elm.json'
return {
@ -23,6 +20,9 @@ return {
disableElmLSDiagnostics = false,
onlyUpdateDiagnosticsOnSave = false,
},
capabilities = {
offsetEncoding = { 'utf-8', 'utf-16' },
},
},
docs = {
description = [[

View File

@ -1,8 +1,5 @@
local util = require 'lspconfig.util'
local default_capabilities = vim.lsp.protocol.make_client_capabilities()
default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' }
return {
default_config = {
cmd = { 'fennel-ls' },
@ -11,7 +8,9 @@ return {
return util.find_git_ancestor(dir)
end,
settings = {},
capabilities = default_capabilities,
capabilities = {
offsetEncoding = { 'utf-8', 'utf-16' },
},
},
docs = {
description = [[

View File

@ -32,14 +32,6 @@ local function is_library(fname)
end
end
local function register_cap()
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.experimental = {
serverStatusNotification = true,
}
return capabilities
end
return {
default_config = {
cmd = { 'rust-analyzer' },
@ -80,7 +72,11 @@ return {
or util.root_pattern 'rust-project.json'(fname)
or util.find_git_ancestor(fname)
end,
capabilities = register_cap(),
capabilities = {
experimental = {
serverStatusNotification = true,
},
},
},
commands = {
CargoReload = {

View File

@ -1,7 +1,10 @@
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'slint-lsp' },
filetypes = { 'slint' },
root_dir = util.find_git_ancestor,
single_file_support = true,
},
docs = {

View File

@ -7,9 +7,9 @@ return {
root_dir = function(filename, _)
return util.root_pattern 'buildServer.json'(filename)
or util.root_pattern('*.xcodeproj', '*.xcworkspace')(filename)
or util.find_git_ancestor(filename)
-- better to keep it at the end, because some modularized apps contain multiple Package.swift files
or util.root_pattern('compile_commands.json', 'Package.swift')(filename)
or util.find_git_ancestor(filename)
end,
},
docs = {
@ -19,7 +19,7 @@ https://github.com/apple/sourcekit-lsp
Language server for Swift and C/C++/Objective-C.
]],
default_config = {
root_dir = [[root_pattern("buildServer.json", "*.xcodeproj", "*.xcworkspace", ".git", "compile_commands.json", "Package.swift")]],
root_dir = [[root_pattern("buildServer.json", "*.xcodeproj", "*.xcworkspace", "compile_commands.json", "Package.swift", ".git")]],
},
},
}

View File

@ -12,7 +12,7 @@ return {
'typescriptreact',
'typescript.tsx',
},
root_dir = util.root_pattern('tsconfig.json', 'package.json', 'jsconfig.json', '.git'),
root_dir = util.root_pattern('tsconfig.json', 'jsconfig.json', 'package.json', '.git'),
single_file_support = true,
},
docs = {
@ -82,7 +82,7 @@ require'lspconfig'.tsserver.setup{
`filetypes` is extended here to include Vue SFC.
]],
default_config = {
root_dir = [[root_pattern("tsconfig.json", "package.json", "jsconfig.json", ".git")]],
root_dir = [[root_pattern("tsconfig.json", "jsconfig.json", "package.json", ".git")]],
},
},
}