mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-12-07 09:35:37 -08:00
macboolk doesn't like lua :c
This commit is contained in:
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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user