Add neovim config
This commit is contained in:
12
nvim/lsp/gitlabcils.lua
Normal file
12
nvim/lsp/gitlabcils.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/gitlab_ci_ls.lua
|
||||
local cache_dir = vim.uv.os_homedir() .. '/.cache/gitlab-ci-ls/'
|
||||
|
||||
return {
|
||||
cmd = { 'gitlab-ci-ls' },
|
||||
filetypes = { 'yaml.gitlab' },
|
||||
root_markers = { '.git', '.gitlab-ci.yml' },
|
||||
init_options = {
|
||||
cache_path = cache_dir,
|
||||
log_path = cache_dir .. '/log/gitlab-ci-ls.log',
|
||||
},
|
||||
}
|
||||
28
nvim/lsp/luals.lua
Normal file
28
nvim/lsp/luals.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/lua_ls.lua
|
||||
return {
|
||||
cmd = {
|
||||
"lua-language-server",
|
||||
},
|
||||
filetypes = {
|
||||
"lua",
|
||||
},
|
||||
root_markers = {
|
||||
".git",
|
||||
".luacheckrc",
|
||||
".luarc.json",
|
||||
".luarc.jsonc",
|
||||
".stylua.toml",
|
||||
"selene.toml",
|
||||
"selene.yml",
|
||||
"stylua.toml",
|
||||
},
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file("", true)
|
||||
}
|
||||
}
|
||||
},
|
||||
single_file_support = true,
|
||||
log_level = vim.lsp.protocol.MessageType.Warning,
|
||||
}
|
||||
6
nvim/lsp/terraformls.lua
Normal file
6
nvim/lsp/terraformls.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/terraformls.lua
|
||||
return {
|
||||
cmd = { 'terraform-ls', 'serve' },
|
||||
filetypes = { 'terraform', 'terraform.vars' },
|
||||
root_markers = { '.terraform', '.git' },
|
||||
}
|
||||
18
nvim/lsp/yamlls.lua
Normal file
18
nvim/lsp/yamlls.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/yamlls.lua
|
||||
return {
|
||||
cmd = { "yaml-language-server", "--stdio" },
|
||||
filetypes = { "yaml", 'yaml.docker-compose', 'yaml.gitlab', 'yaml.helm-values' },
|
||||
root_markers = { ".git" },
|
||||
settings = {
|
||||
redhat = {
|
||||
telemetry = {
|
||||
enabled = false
|
||||
}
|
||||
},
|
||||
yaml = {
|
||||
format = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user