macboolk doesn't like lua :c
This commit is contained in:
parent
f2ba1e8549
commit
5b483a9db7
34 changed files with 279 additions and 776 deletions
32
lua/plugins/schemastore.lua
Normal file
32
lua/plugins/schemastore.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
return {
|
||||
{
|
||||
'b0o/schemastore.nvim',
|
||||
dependencies = {
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
},
|
||||
config = function()
|
||||
local schemastore = require 'schemastore'
|
||||
local lspconfig = require 'lspconfig'
|
||||
lspconfig.jsonls.setup {
|
||||
settigns = {
|
||||
json = {
|
||||
schemas = schemastore.json.schemas(),
|
||||
validate = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
lspconfig.yamlls.setup {
|
||||
settigns = {
|
||||
yaml = {
|
||||
schemas = schemastore.yaml.schemas(),
|
||||
},
|
||||
schemaStore = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue