Add comments
This commit is contained in:
@@ -1,53 +1,54 @@
|
|||||||
|
-- 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:
|
||||||
-- build = 'nix run .#build-plugin',
|
-- build = 'nix run .#build-plugin',
|
||||||
|
|
||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
opts = {
|
opts = {
|
||||||
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
||||||
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
||||||
-- 'enter' for enter to accept
|
-- 'enter' for enter to accept
|
||||||
-- 'none' for no mappings
|
-- 'none' for no mappings
|
||||||
--
|
--
|
||||||
-- All presets have the following mappings:
|
-- All presets have the following mappings:
|
||||||
-- C-space: Open menu or open docs if already open
|
-- C-space: Open menu or open docs if already open
|
||||||
-- C-n/C-p or Up/Down: Select next/previous item
|
-- C-n/C-p or Up/Down: Select next/previous item
|
||||||
-- C-e: Hide menu
|
-- C-e: Hide menu
|
||||||
-- 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
|
||||||
completion = { documentation = { auto_show = true } },
|
completion = { documentation = { auto_show = true } },
|
||||||
|
|
||||||
-- 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
|
||||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
||||||
-- 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" },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
|
-- 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()
|
||||||
build = function () require("gitlab.server").build(true) end, -- Builds the Go binary
|
require("gitlab.server").build(true)
|
||||||
config = function()
|
end, -- Builds the Go binary
|
||||||
require("gitlab").setup()
|
config = function()
|
||||||
end,
|
require("gitlab").setup()
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,38 @@
|
|||||||
-- https://github.com/mason-org/mason.nvim
|
-- https://github.com/mason-org/mason.nvim
|
||||||
-- https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim
|
-- https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"mason-org/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
registries = {
|
registries = {
|
||||||
"file:~/.config/mason-registry",
|
"file:~/.config/mason-registry",
|
||||||
"github:mason-org/mason-registry",
|
"github:mason-org/mason-registry",
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
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",
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
|
-- https://github.com/folke/snacks.nvim
|
||||||
return {
|
return {
|
||||||
"folke/snacks.nvim",
|
"folke/snacks.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
-- your configuration comes here
|
-- your configuration comes here
|
||||||
-- or leave it empty to use the default settings
|
-- or leave it empty to use the default settings
|
||||||
-- refer to the configuration section below
|
-- refer to the configuration section below
|
||||||
indent = { enabled = true },
|
indent = { enabled = true },
|
||||||
input = { enabled = true },
|
input = { enabled = true },
|
||||||
git = { enabled = true },
|
git = { enabled = true },
|
||||||
lazygit = { enabled = true },
|
lazygit = { enabled = true },
|
||||||
notifier = { enabled = true },
|
notifier = { enabled = true },
|
||||||
picker = { enabled = true },
|
picker = { enabled = true },
|
||||||
dashboard = {
|
dashboard = {
|
||||||
width = 80,
|
width = 80,
|
||||||
row = nil, -- dashboard position. nil for center
|
row = nil, -- dashboard position. nil for center
|
||||||
col = nil, -- dashboard position. nil for center
|
col = nil, -- dashboard position. nil for center
|
||||||
pane_gap = 20, -- empty columns between vertical panes
|
pane_gap = 20, -- empty columns between vertical panes
|
||||||
preset = {
|
preset = {
|
||||||
header = [[
|
header = [[
|
||||||
" *++*- "
|
" *++*- "
|
||||||
" -=+++++ "
|
" -=+++++ "
|
||||||
" -=====++= "
|
" -=====++= "
|
||||||
@@ -49,37 +50,44 @@ return {
|
|||||||
" ###- "
|
" ###- "
|
||||||
" *####% "
|
" *####% "
|
||||||
" .:-:. "]],
|
" .:-:. "]],
|
||||||
keys = {
|
keys = {
|
||||||
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
||||||
{ 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 = "q", desc = "Quit", action = ":qa" },
|
icon = " ",
|
||||||
},
|
key = "G",
|
||||||
},
|
desc = "LazyGit",
|
||||||
sections = {
|
action = function()
|
||||||
{ section = "header" },
|
Snacks.lazygit()
|
||||||
{
|
end,
|
||||||
pane = 2,
|
},
|
||||||
icon = " ",
|
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
||||||
title = "Git Status",
|
},
|
||||||
section = "terminal",
|
},
|
||||||
enabled = function()
|
sections = {
|
||||||
return Snacks.git.get_root() ~= nil
|
{ section = "header" },
|
||||||
end,
|
{
|
||||||
cmd = "git status --short --branch --renames",
|
pane = 2,
|
||||||
height = 5,
|
icon = " ",
|
||||||
padding = 2,
|
title = "Git Status",
|
||||||
ttl = 5 * 60,
|
section = "terminal",
|
||||||
indent = 3,
|
enabled = function()
|
||||||
},
|
return Snacks.git.get_root() ~= nil
|
||||||
{ pane = 2, section = "keys", gap = 1, padding = 4 },
|
end,
|
||||||
{ pane = 2, section = "startup" },
|
cmd = "git status --short --branch --renames",
|
||||||
},
|
height = 5,
|
||||||
},
|
padding = 2,
|
||||||
},
|
ttl = 5 * 60,
|
||||||
|
indent = 3,
|
||||||
|
},
|
||||||
|
{ pane = 2, section = "keys", gap = 1, padding = 4 },
|
||||||
|
{ pane = 2, section = "startup" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
-- 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" },
|
||||||
opts = {
|
opts = {
|
||||||
focus = true,
|
focus = true,
|
||||||
auto_preview = false,
|
auto_preview = false,
|
||||||
},
|
},
|
||||||
cmd = "Trouble",
|
cmd = "Trouble",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user