nvim: yaml stuff
This commit is contained in:
parent
810386d7c7
commit
4452fedd75
3 changed files with 27 additions and 10 deletions
|
@ -9,12 +9,21 @@ function M.setup()
|
|||
|
||||
axaml = 'xml',
|
||||
xaml = 'xml',
|
||||
cake = 'cs'
|
||||
cake = 'cs',
|
||||
},
|
||||
filename = {
|
||||
['Directory.Build.props'] = 'xml',
|
||||
['Directory.Build.targets'] = 'xml',
|
||||
}
|
||||
},
|
||||
pattern = {
|
||||
['.*vars/.*yaml'] = 'yaml.ansible',
|
||||
['.*/inventory/.*yaml'] = 'yaml.ansible',
|
||||
['.*/roles/.*yaml'] = 'yaml.ansible',
|
||||
['.*/handlers/.*yaml'] = 'yaml.ansible',
|
||||
['.*/tasks/.*yaml'] = 'yaml.ansible',
|
||||
['.*/defaults/.*yaml'] = 'yaml.ansible',
|
||||
['.*/meta/.*yaml'] = 'yaml.ansible',
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -37,24 +37,24 @@ local server_configs = function()
|
|||
settings = {
|
||||
FormattingOptions = {
|
||||
EnableEditorConfigSupport = true,
|
||||
OrganizeImportsOnFormat = true
|
||||
OrganizeImportsOnFormat = true,
|
||||
},
|
||||
RoslynExtensionsOptions = {
|
||||
EnableAnalyzersSupport = true,
|
||||
EnableImportCompletion = true,
|
||||
AnalyzeOpenDocumentsOnly = true,
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
cmd = { 'omnisharp', 'RoslynExtensionsOptions:EnableDecompilationSupport=true' },
|
||||
}, -- }}}
|
||||
lua_ls = {
|
||||
-- {{{
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false, },
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
completion = { callSnippet = 'Replace', },
|
||||
completion = { callSnippet = 'Replace' },
|
||||
},
|
||||
},
|
||||
}, -- }}}
|
||||
|
@ -72,7 +72,7 @@ local server_configs = function()
|
|||
end)
|
||||
end,
|
||||
}, -- }}}
|
||||
yamlls = require('yaml-companion').setup {
|
||||
yamlls = require('schema-companion').setup_client {
|
||||
-- {{{
|
||||
settings = {
|
||||
yaml = {
|
||||
|
@ -397,11 +397,20 @@ return {
|
|||
{ 'b0o/schemastore.nvim', lazy = true },
|
||||
{ 'Issafalcon/lsp-overloads.nvim', lazy = true },
|
||||
{
|
||||
'vlada-dudr/yaml-companion.nvim',
|
||||
'cenk1cenk2/schema-companion.nvim',
|
||||
lazy = true,
|
||||
config = function()
|
||||
require('schema-companion').setup({
|
||||
enable_telescope = true,
|
||||
matchers = {
|
||||
require('schema-companion.matchers.kubernetes').setup({ version = 'master' }),
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
{ 'nvim-lua/plenary.nvim' },
|
||||
{ 'nvim-telescope/telescope.nvim' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -242,7 +242,6 @@ return {
|
|||
{ 'chrisbra/csv.vim', ft = 'csv' },
|
||||
{ 'NoahTheDuke/vim-just' },
|
||||
{ 'towolf/vim-helm' },
|
||||
{ 'pearofducks/ansible-vim' },
|
||||
{ 'grafana/vim-alloy' },
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue