my config yay
This commit is contained in:
parent
d605b840a2
commit
f4b595733a
32 changed files with 1108 additions and 715 deletions
30
lua/custom/plugins/schemastore.lua
Normal file
30
lua/custom/plugins/schemastore.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
return {
|
||||
{
|
||||
'b0o/schemastore.nvim',
|
||||
depenencies = {
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
},
|
||||
config = function()
|
||||
require('lspconfig').jsonls.setup {
|
||||
settigns = {
|
||||
json = {
|
||||
schemas = require('schemastore').json.schemas(),
|
||||
validate = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
require('lspconfig').yamlls.setup {
|
||||
settigns = {
|
||||
yaml = {
|
||||
schemas = require('schemastore').yaml.schemas(),
|
||||
},
|
||||
schemaStore = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue