Add comments

This commit is contained in:
Valeriy Filippov
2026-03-11 10:51:09 +03:00
parent dfb07cbf6b
commit bfd1fe67b3
5 changed files with 163 additions and 151 deletions

View File

@@ -1,10 +1,11 @@
-- https://github.com/saghen/blink.cmp
return { return {
'saghen/blink.cmp', "saghen/blink.cmp",
-- optional: provides snippets for the snippet source -- optional: provides snippets for the snippet source
dependencies = { 'rafamadriz/friendly-snippets' }, dependencies = { "rafamadriz/friendly-snippets" },
-- use a release tag to download pre-built binaries -- use a release tag to download pre-built binaries
version = '1.*', version = "1.*",
-- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust -- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
-- build = 'cargo build --release', -- build = 'cargo build --release',
-- If you use nix, you can build from source using latest nightly rust with: -- If you use nix, you can build from source using latest nightly rust with:
@@ -25,12 +26,12 @@ return {
-- C-k: Toggle signature help (if signature.enabled = true) -- C-k: Toggle signature help (if signature.enabled = true)
-- --
-- See :h blink-cmp-config-keymap for defining your own keymap -- See :h blink-cmp-config-keymap for defining your own keymap
keymap = { preset = 'default' }, keymap = { preset = "default" },
appearance = { appearance = {
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font' -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned -- Adjusts spacing to ensure icons are aligned
nerd_font_variant = 'mono' nerd_font_variant = "mono",
}, },
-- (Default) Only show the documentation popup when manually triggered -- (Default) Only show the documentation popup when manually triggered
@@ -39,7 +40,7 @@ return {
-- Default list of enabled providers defined so that you can extend it -- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend` -- elsewhere in your config, without redefining it, due to `opts_extend`
sources = { sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' }, default = { "lsp", "path", "snippets", "buffer" },
}, },
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
@@ -47,7 +48,7 @@ return {
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"` -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
-- --
-- See the fuzzy documentation for more information -- See the fuzzy documentation for more information
fuzzy = { implementation = "prefer_rust_with_warning" } fuzzy = { implementation = "prefer_rust_with_warning" },
}, },
opts_extend = { "sources.default" } opts_extend = { "sources.default" },
} }

View File

@@ -1,13 +1,15 @@
-- https://github.com/harrisoncramer/gitlab.nvim
return { return {
"harrisoncramer/gitlab.nvim", "harrisoncramer/gitlab.nvim",
dependencies = { dependencies = {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"sindrets/diffview.nvim", "sindrets/diffview.nvim",
"stevearc/dressing.nvim", -- Recommended but not required. Better UI for pickers.
"nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree. "nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree.
}, },
build = function () require("gitlab.server").build(true) end, -- Builds the Go binary build = function()
require("gitlab.server").build(true)
end, -- Builds the Go binary
config = function() config = function()
require("gitlab").setup() require("gitlab").setup()
end, end,

View File

@@ -12,27 +12,27 @@ return {
icons = { icons = {
package_installed = "", package_installed = "",
package_pending = "", package_pending = "",
package_uninstalled = "" package_uninstalled = "",
} },
} },
} },
}, },
{ {
"WhoIsSethDaniel/mason-tool-installer.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim",
opts = { opts = {
ensure_installed = { ensure_installed = {
"docker-language-server", "docker-language-server", -- https://github.com/docker/docker-language-server
"gitlab-ci-ls", "gitlab-ci-ls", -- https://github.com/alesbrelih/gitlab-ci-ls
"lua-language-server", "lua-language-server", -- https://github.com/luals/lua-language-server
"prettier", "prettier", -- https://github.com/prettier/prettier
"prettierd", "prettierd", -- https://github.com/prettier/prettier
"stylua", "stylua", -- https://github.com/JohnnyMorganz/StyLua
"terraform-ls", "terraform-ls", -- https://github.com/hashicorp/terraform-ls
"yaml-language-server", "yaml-language-server", -- https://github.com/redhat-developer/yaml-language-server
}, },
}, },
dependencies = { dependencies = {
"williamboman/mason.nvim", "williamboman/mason.nvim",
}, },
} },
} }

View File

@@ -1,3 +1,4 @@
-- https://github.com/folke/snacks.nvim
return { return {
"folke/snacks.nvim", "folke/snacks.nvim",
priority = 1000, priority = 1000,
@@ -54,10 +55,17 @@ return {
{ icon = "", key = "e", desc = "File Explorer", action = ":NvimTreeToggle" }, { icon = "", key = "e", desc = "File Explorer", action = ":NvimTreeToggle" },
{ icon = "", key = "ff", desc = "Find File", action = ":Telescope find_files" }, { icon = "", key = "ff", desc = "Find File", action = ":Telescope find_files" },
{ icon = "", key = "fs", desc = "Find String", action = ":Telescope live_grep" }, { icon = "", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
{ icon = "", key = "s", desc = "Restore Session", action = ":AutoSession restore"}, { icon = "", key = "s", desc = "Restore Session", action = ":AutoSession restore" },
{ icon = "󰒲 ", key = "L", desc = "Lazy UI", action = ":Lazy" }, { icon = "󰒲 ", key = "L", desc = "Lazy UI", action = ":Lazy" },
{ icon = "", key = "M", desc = "Mason UI", action = ":Mason" }, { icon = "", key = "M", desc = "Mason UI", action = ":Mason" },
{ icon = "", key = "G", desc = "LazyGit", action = function() Snacks.lazygit() end}, {
icon = "",
key = "G",
desc = "LazyGit",
action = function()
Snacks.lazygit()
end,
},
{ icon = "", key = "q", desc = "Quit", action = ":qa" }, { icon = "", key = "q", desc = "Quit", action = ":qa" },
}, },
}, },

View File

@@ -1,3 +1,4 @@
-- https://github.com/folke/trouble.nvim
return { return {
"folke/trouble.nvim", "folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons", "folke/todo-comments.nvim" }, dependencies = { "nvim-tree/nvim-web-devicons", "folke/todo-comments.nvim" },