1
0
Fork 0

nvim: yaml stuff

This commit is contained in:
Vladimír Dudr 2024-10-14 20:17:18 +02:00
parent 810386d7c7
commit 4452fedd75
3 changed files with 27 additions and 10 deletions

View file

@ -9,12 +9,21 @@ function M.setup()
axaml = 'xml', axaml = 'xml',
xaml = 'xml', xaml = 'xml',
cake = 'cs' cake = 'cs',
}, },
filename = { filename = {
['Directory.Build.props'] = 'xml', ['Directory.Build.props'] = 'xml',
['Directory.Build.targets'] = '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 end

View file

@ -37,24 +37,24 @@ local server_configs = function()
settings = { settings = {
FormattingOptions = { FormattingOptions = {
EnableEditorConfigSupport = true, EnableEditorConfigSupport = true,
OrganizeImportsOnFormat = true OrganizeImportsOnFormat = true,
}, },
RoslynExtensionsOptions = { RoslynExtensionsOptions = {
EnableAnalyzersSupport = true, EnableAnalyzersSupport = true,
EnableImportCompletion = true, EnableImportCompletion = true,
AnalyzeOpenDocumentsOnly = true, AnalyzeOpenDocumentsOnly = true,
},
}, },
},
cmd = { 'omnisharp', 'RoslynExtensionsOptions:EnableDecompilationSupport=true' }, cmd = { 'omnisharp', 'RoslynExtensionsOptions:EnableDecompilationSupport=true' },
}, -- }}} }, -- }}}
lua_ls = { lua_ls = {
-- {{{ -- {{{
settings = { settings = {
Lua = { Lua = {
workspace = { checkThirdParty = false, }, workspace = { checkThirdParty = false },
telemetry = { enable = false }, telemetry = { enable = false },
completion = { callSnippet = 'Replace', }, completion = { callSnippet = 'Replace' },
}, },
}, },
}, -- }}} }, -- }}}
@ -72,7 +72,7 @@ local server_configs = function()
end) end)
end, end,
}, -- }}} }, -- }}}
yamlls = require('yaml-companion').setup { yamlls = require('schema-companion').setup_client {
-- {{{ -- {{{
settings = { settings = {
yaml = { yaml = {
@ -397,11 +397,20 @@ return {
{ 'b0o/schemastore.nvim', lazy = true }, { 'b0o/schemastore.nvim', lazy = true },
{ 'Issafalcon/lsp-overloads.nvim', lazy = true }, { 'Issafalcon/lsp-overloads.nvim', lazy = true },
{ {
'vlada-dudr/yaml-companion.nvim', 'cenk1cenk2/schema-companion.nvim',
lazy = true, lazy = true,
config = function()
require('schema-companion').setup({
enable_telescope = true,
matchers = {
require('schema-companion.matchers.kubernetes').setup({ version = 'master' }),
},
})
end,
dependencies = { dependencies = {
{ 'neovim/nvim-lspconfig' }, { 'neovim/nvim-lspconfig' },
{ 'nvim-lua/plenary.nvim' }, { 'nvim-lua/plenary.nvim' },
{ 'nvim-telescope/telescope.nvim' },
}, },
}, },
} }

View file

@ -242,7 +242,6 @@ return {
{ 'chrisbra/csv.vim', ft = 'csv' }, { 'chrisbra/csv.vim', ft = 'csv' },
{ 'NoahTheDuke/vim-just' }, { 'NoahTheDuke/vim-just' },
{ 'towolf/vim-helm' }, { 'towolf/vim-helm' },
{ 'pearofducks/ansible-vim' },
{ 'grafana/vim-alloy' }, { 'grafana/vim-alloy' },