feat: convert to blink, major lsp changes, lualine
This commit is contained in:
parent
82102e5e29
commit
51ab444c0d
44 changed files with 1387 additions and 700 deletions
27
lua/lsp/yamlls.lua
Normal file
27
lua/lsp/yamlls.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
-- Get LSP capabilities with cmp support
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
local ok, cmp_nvim_lsp = pcall(require, 'cmp_nvim_lsp')
|
||||
if ok then
|
||||
capabilities = vim.tbl_deep_extend('force', capabilities, cmp_nvim_lsp.default_capabilities())
|
||||
end
|
||||
|
||||
return {
|
||||
name = 'yamlls',
|
||||
cmd = { 'yaml-language-server', '--stdio' },
|
||||
filetypes = { 'yaml', 'yml' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find({ '.git', 'docker-compose.yml', 'docker-compose.yaml' }, { upward = true })[1]),
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
telemetry = {
|
||||
enabled = false,
|
||||
},
|
||||
yaml = {
|
||||
schemas = {
|
||||
['https://json.schemastore.org/github-workflow.json'] = '/.github/workflows/*',
|
||||
['https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json'] = '/docker-compose*.{yml,yaml}',
|
||||
['https://json.schemastore.org/kustomization.json'] = 'kustomization.{yml,yaml}',
|
||||
['https://json.schemastore.org/chart.json'] = '/Chart.{yml,yaml}',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue