add yaml lsp
This commit is contained in:
parent
6b8fec654c
commit
90c900c602
@ -0,0 +1,12 @@
|
||||
return {
|
||||
capabilities = require('cmp_nvim_lsp').default_capabilities(),
|
||||
settings = {
|
||||
yaml = {
|
||||
schemas = {
|
||||
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
|
||||
["../path/relative/to/file.yml"] = "/.github/workflows/*",
|
||||
["/path/from/root/of/project"] = "/.github/workflows/*",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -46,8 +46,9 @@ return {
|
||||
require 'lspconfig'.clangd.setup(require('lsp.c'))
|
||||
require 'lspconfig'.bashls.setup(require('lsp.bash'))
|
||||
require 'lspconfig'.pyright.setup(require('lsp.pyright'))
|
||||
require 'lspconfig'.jsonls.setup({})
|
||||
require('lspconfig').yamlls.setup(require("lsp.yaml"))
|
||||
require 'lspconfig'.jsonls.setup {}
|
||||
require 'lspconfig'.yamlls.setup(require('lsp.yaml'))
|
||||
|
||||
G.map({
|
||||
|
||||
{ 'n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>' },
|
||||
@ -60,6 +61,7 @@ return {
|
||||
{ 'n', '<cs-i>', '<cmd>lua vim.lsp.buf.format()<CR>' },
|
||||
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
},
|
||||
|
@ -1,11 +0,0 @@
|
||||
return {
|
||||
settings = {
|
||||
yaml = {
|
||||
schemas = {
|
||||
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
|
||||
["../path/relative/to/file.yml"] = "/.github/workflows/*",
|
||||
["/path/from/root/of/project"] = "/.github/workflows/*",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user