summaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/rlsp_yaml.lua
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-06-14 00:48:04 +0300
committerKyren223 <contact@kyren.codes>2026-06-14 00:48:04 +0300
commite18793607efe824b1876d99739c8e21d77b02a2c (patch)
tree23b6a703c644fb2d478afeeff4cf01ff488ac167 /.config/nvim/lsp/rlsp_yaml.lua
parent06d600d281912b83d569022092691b01279ba093 (diff)
Add a non-javascript yaml lsp so I can minimize javascript deps to not
get supply chain attacked
Diffstat (limited to '.config/nvim/lsp/rlsp_yaml.lua')
-rw-r--r--.config/nvim/lsp/rlsp_yaml.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/lsp/rlsp_yaml.lua b/.config/nvim/lsp/rlsp_yaml.lua
new file mode 100644
index 0000000..e866ef0
--- /dev/null
+++ b/.config/nvim/lsp/rlsp_yaml.lua
@@ -0,0 +1,23 @@
+-- https://github.com/chdalski/rlsp/tree/main/rlsp-yaml
+
+return {
+ name = 'rlsp-yaml',
+ cmd = { 'rlsp-yaml' },
+ filetypes = { 'yaml', 'yml' },
+ root_markers = { '.git' },
+ workspace_required = false,
+ init_options = {
+ customTags = { '!include', '!ref' },
+ keyOrdering = false,
+ kubernetesVersion = 'master',
+ schemaStore = true,
+ formatValidation = true,
+ schemas = {
+ ['https://json.schemastore.org/github-workflow'] = '.github/workflows/*.yml',
+ },
+ formatPrintWidth = 80,
+ formatSingleQuote = false,
+ formatPreserveQuotes = false,
+ httpProxy = 'http://proxy.corp:8080',
+ },
+}