From 31bc0891fb7958efb47c211e3f770ae48efd39d4 Mon Sep 17 00:00:00 2001 From: Valeriy Filippov Date: Thu, 12 Mar 2026 11:34:46 +0300 Subject: [PATCH] Upd with resolved diagnostic --- nvim/lsp/gitlabcils.lua | 15 ++++++++------- nvim/lua/config/lazy.lua | 2 +- nvim/lua/plugins/lualine.lua | 1 + nvim/lua/plugins/opencode.lua | 4 ++++ nvim/lua/plugins/treesitter.lua | 7 ++++++- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/nvim/lsp/gitlabcils.lua b/nvim/lsp/gitlabcils.lua index 920ea19..8faf5fd 100644 --- a/nvim/lsp/gitlabcils.lua +++ b/nvim/lsp/gitlabcils.lua @@ -1,12 +1,13 @@ -- 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/" 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", - }, + 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", + }, } diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index c9743d0..e905816 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -1,6 +1,7 @@ -- https://githup.com/folke/lazy.nvim -- Bootstrap 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 local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) @@ -26,4 +27,3 @@ require("lazy").setup("plugins", { notify = false, }, }) - diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua index b0667b9..6ddc613 100644 --- a/nvim/lua/plugins/lualine.lua +++ b/nvim/lua/plugins/lualine.lua @@ -7,6 +7,7 @@ return { local lazy_status = require("lazy.status") -- to configure lazy pending updates count -- configure lualine with modified theme + ---@diagnostic disable-next-line: undefined-field lualine.setup({ options = { theme = "auto", diff --git a/nvim/lua/plugins/opencode.lua b/nvim/lua/plugins/opencode.lua index 0d520c3..0c70ef8 100644 --- a/nvim/lua/plugins/opencode.lua +++ b/nvim/lua/plugins/opencode.lua @@ -12,6 +12,7 @@ return { input = {}, -- Enhances `ask()` picker = { -- Enhances `select()` actions = { + ---@diagnostic disable-next-line: undefined-field opencode_send = function(...) return require("opencode").snacks_picker_send(...) end, }, win = { @@ -45,6 +46,9 @@ return { 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, }, + lsp = { + enabled = true, + }, } vim.o.autoread = true -- Required for `opts.events.reload` end, diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index e45e2ad..de0e94f 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -11,7 +11,8 @@ return { local treesitter = require("nvim-treesitter.configs") -- configure treesitter - treesitter.setup({ -- enable syntax highlighting + treesitter.setup({ + -- enable syntax highlighting highlight = { enable = true, }, @@ -41,6 +42,10 @@ return { "vimdoc", "yaml", }, + modules = {}, + sync_install = false, + ignore_install = {}, + auto_install = false, incremental_selection = { enable = true, keymaps = {