Add a non-javascript yaml lsp so I can minimize javascript deps to not
get supply chain attacked
This commit is contained in:
23
.config/nvim/lsp/rlsp_yaml.lua
Normal file
23
.config/nvim/lsp/rlsp_yaml.lua
Normal file
@@ -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',
|
||||
},
|
||||
}
|
||||
@@ -469,7 +469,7 @@ function Compile_project(command)
|
||||
vim.api.nvim_buf_call(BuildTerminalBuf, function()
|
||||
-- vim.fn.termopen(command, vim.empty_dict())
|
||||
-- local job_id = vim.fn.termopen(vim.o.shell)
|
||||
local job_id = vim.fn.jobstart(vim.o.shell, { term = true })
|
||||
local job_id = vim.fn.jobstart(vim.o.shell, { term = true })
|
||||
if job_id > 0 then
|
||||
vim.fn.chansend(job_id, command)
|
||||
end
|
||||
|
||||
@@ -9,8 +9,9 @@ return {
|
||||
lua_ls = true,
|
||||
markdown_oxide = true,
|
||||
nil_ls = true, -- nix
|
||||
rlsp_yaml = true,
|
||||
taplo = true, -- toml
|
||||
yamlls = true,
|
||||
yamlls = false,
|
||||
zls = true, -- zig
|
||||
|
||||
-- astro = true,
|
||||
|
||||
Reference in New Issue
Block a user