Upd with resolved diagnostic

This commit is contained in:
Valeriy Filippov
2026-03-12 11:34:46 +03:00
parent fdcab36e0f
commit 31bc0891fb
5 changed files with 20 additions and 9 deletions

View File

@@ -1,12 +1,13 @@
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/gitlab_ci_ls.lua -- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/gitlab_ci_ls.lua
---@diagnostic disable-next-line: undefined-field
local cache_dir = vim.uv.os_homedir() .. "/.cache/gitlab-ci-ls/" local cache_dir = vim.uv.os_homedir() .. "/.cache/gitlab-ci-ls/"
return { return {
cmd = { "gitlab-ci-ls" }, cmd = { "gitlab-ci-ls" },
filetypes = { "yaml.gitlab" }, filetypes = { "yaml.gitlab" },
root_markers = { ".git", ".gitlab-ci.yml" }, root_markers = { ".git", ".gitlab-ci.yml" },
init_options = { init_options = {
cache_path = cache_dir, cache_path = cache_dir,
log_path = cache_dir .. "/log/gitlab-ci-ls.log", log_path = cache_dir .. "/log/gitlab-ci-ls.log",
}, },
} }

View File

@@ -1,6 +1,7 @@
-- https://githup.com/folke/lazy.nvim -- https://githup.com/folke/lazy.nvim
-- Bootstrap lazy.nvim -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
---@diagnostic disable-next-line: undefined-field
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
@@ -26,4 +27,3 @@ require("lazy").setup("plugins", {
notify = false, notify = false,
}, },
}) })

View File

@@ -7,6 +7,7 @@ return {
local lazy_status = require("lazy.status") -- to configure lazy pending updates count local lazy_status = require("lazy.status") -- to configure lazy pending updates count
-- configure lualine with modified theme -- configure lualine with modified theme
---@diagnostic disable-next-line: undefined-field
lualine.setup({ lualine.setup({
options = { options = {
theme = "auto", theme = "auto",

View File

@@ -12,6 +12,7 @@ return {
input = {}, -- Enhances `ask()` input = {}, -- Enhances `ask()`
picker = { -- Enhances `select()` picker = { -- Enhances `select()`
actions = { actions = {
---@diagnostic disable-next-line: undefined-field
opencode_send = function(...) return require("opencode").snacks_picker_send(...) end, opencode_send = function(...) return require("opencode").snacks_picker_send(...) end,
}, },
win = { win = {
@@ -45,6 +46,9 @@ return {
stop = function() require("snacks.terminal").get(opencode_cmd, snacks_terminal_opts):close() end, stop = function() require("snacks.terminal").get(opencode_cmd, snacks_terminal_opts):close() end,
toggle = function() require("snacks.terminal").toggle(opencode_cmd, snacks_terminal_opts) end, toggle = function() require("snacks.terminal").toggle(opencode_cmd, snacks_terminal_opts) end,
}, },
lsp = {
enabled = true,
},
} }
vim.o.autoread = true -- Required for `opts.events.reload` vim.o.autoread = true -- Required for `opts.events.reload`
end, end,

View File

@@ -11,7 +11,8 @@ return {
local treesitter = require("nvim-treesitter.configs") local treesitter = require("nvim-treesitter.configs")
-- configure treesitter -- configure treesitter
treesitter.setup({ -- enable syntax highlighting treesitter.setup({
-- enable syntax highlighting
highlight = { highlight = {
enable = true, enable = true,
}, },
@@ -41,6 +42,10 @@ return {
"vimdoc", "vimdoc",
"yaml", "yaml",
}, },
modules = {},
sync_install = false,
ignore_install = {},
auto_install = false,
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {