Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-04-20 01:50:04 +03:00
1 parent b1a92f479d
commit b5f1714ee7
35 files changed
+1815 -2067

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
return {
"Civitasv/cmake-tools.nvim",
}
+97
View File
@@ -0,0 +1,97 @@
return {
"xzbdmw/colorful-menu.nvim",
config = function()
-- You don't need to set these options.
require("colorful-menu").setup({
ls = {
lua_ls = {
-- Maybe you want to dim arguments a bit.
arguments_hl = "@comment",
},
gopls = {
-- By default, we render variable/function's type in the right most side,
-- to make them not to crowd together with the original label.
-- when true:
-- foo *Foo
-- ast "go/ast"
-- when false:
-- foo *Foo
-- ast "go/ast"
align_type_to_right = true,
-- When true, label for field and variable will format like "foo: Foo"
-- instead of go's original syntax "foo Foo". If align_type_to_right is
-- true, this option has no effect.
add_colon_before_type = false,
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
-- for lsp_config or typescript-tools
ts_ls = {
-- false means do not include any extra info,
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
extra_info_hl = "@comment",
},
vtsls = {
-- false means do not include any extra info,
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
extra_info_hl = "@comment",
},
["rust-analyzer"] = {
-- Such as (as Iterator), (use std::io).
extra_info_hl = "@comment",
-- Similar to the same setting of gopls.
align_type_to_right = true,
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
clangd = {
-- Such as "From <stdio.h>".
extra_info_hl = "@comment",
-- Similar to the same setting of gopls.
align_type_to_right = true,
-- the hl group of leading dot of "•std::filesystem::permissions(..)"
import_dot_hl = "@comment",
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
zls = {
-- Similar to the same setting of gopls.
align_type_to_right = true,
},
roslyn = {
extra_info_hl = "@comment",
},
dartls = {
extra_info_hl = "@comment",
},
-- The same applies to pyright/pylance
basedpyright = {
-- It is usually import path such as "os"
extra_info_hl = "@comment",
},
pylsp = {
extra_info_hl = "@comment",
-- Dim the function argument area, which is the main
-- difference with pyright.
arguments_hl = "@comment",
},
-- If true, try to highlight "not supported" languages.
fallback = true,
-- this will be applied to label description for unsupported languages
fallback_extra_info_hl = "@comment",
},
-- If the built-in logic fails to find a suitable highlight group for a label,
-- this highlight is applied to the label.
fallback_highlight = "@variable",
-- If provided, the plugin truncates the final displayed text to
-- this width (measured in display cells). Any highlights that extend
-- beyond the truncation point are ignored. When set to a float
-- between 0 and 1, it'll be treated as percentage of the width of
-- the window: math.floor(max_width * vim.api.nvim_win_get_width(0))
-- Default 60.
max_width = 60,
})
end,
}
-97
View File
@@ -1,97 +0,0 @@
return {
"xzbdmw/colorful-menu.nvim",
config = function()
-- You don't need to set these options.
require("colorful-menu").setup({
ls = {
lua_ls = {
-- Maybe you want to dim arguments a bit.
arguments_hl = "@comment",
},
gopls = {
-- By default, we render variable/function's type in the right most side,
-- to make them not to crowd together with the original label.
-- when true:
-- foo *Foo
-- ast "go/ast"
-- when false:
-- foo *Foo
-- ast "go/ast"
align_type_to_right = true,
-- When true, label for field and variable will format like "foo: Foo"
-- instead of go's original syntax "foo Foo". If align_type_to_right is
-- true, this option has no effect.
add_colon_before_type = false,
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
-- for lsp_config or typescript-tools
ts_ls = {
-- false means do not include any extra info,
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
extra_info_hl = "@comment",
},
vtsls = {
-- false means do not include any extra info,
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
extra_info_hl = "@comment",
},
["rust-analyzer"] = {
-- Such as (as Iterator), (use std::io).
extra_info_hl = "@comment",
-- Similar to the same setting of gopls.
align_type_to_right = true,
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
clangd = {
-- Such as "From <stdio.h>".
extra_info_hl = "@comment",
-- Similar to the same setting of gopls.
align_type_to_right = true,
-- the hl group of leading dot of "•std::filesystem::permissions(..)"
import_dot_hl = "@comment",
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
preserve_type_when_truncate = true,
},
zls = {
-- Similar to the same setting of gopls.
align_type_to_right = true,
},
roslyn = {
extra_info_hl = "@comment",
},
dartls = {
extra_info_hl = "@comment",
},
-- The same applies to pyright/pylance
basedpyright = {
-- It is usually import path such as "os"
extra_info_hl = "@comment",
},
pylsp = {
extra_info_hl = "@comment",
-- Dim the function argument area, which is the main
-- difference with pyright.
arguments_hl = "@comment",
},
-- If true, try to highlight "not supported" languages.
fallback = true,
-- this will be applied to label description for unsupport languages
fallback_extra_info_hl = "@comment",
},
-- If the built-in logic fails to find a suitable highlight group for a label,
-- this highlight is applied to the label.
fallback_highlight = "@variable",
-- If provided, the plugin truncates the final displayed text to
-- this width (measured in display cells). Any highlights that extend
-- beyond the truncation point are ignored. When set to a float
-- between 0 and 1, it'll be treated as percentage of the width of
-- the window: math.floor(max_width * vim.api.nvim_win_get_width(0))
-- Default 60.
max_width = 60,
})
end,
}
+6
View File
@@ -0,0 +1,6 @@
return {
"mr-u0b0dy/crazy-coverage.nvim",
config = function()
require("crazy-coverage").setup()
end,
}
+115
View File
@@ -0,0 +1,115 @@
return {
"mfussenegger/nvim-dap",
dependencies = {
"rcarriga/nvim-dap-ui",
"nvim-neotest/nvim-nio",
"theHamsta/nvim-dap-virtual-text",
"Weissle/persistent-breakpoints.nvim",
},
config = function()
local dap, dapui = require("dap"), require("dapui")
dapui.setup({})
dap.adapters = {
lldb = {
type = "executable",
command = "/usr/bin/lldb-dap",
name = "lldb",
},
codelldb = {
type = "executable",
command = "codelldb",
name = "codelldb",
},
}
local pickers = require("telescope.pickers")
local finders = require("telescope.finders")
local conf = require("telescope.config").values
local actions = require("telescope.actions")
local action_state = require("telescope.actions.state")
dap.configurations = {
cpp = {
{
name = "Launch file(codelldb)",
type = "codelldb",
request = "launch",
program = function()
return coroutine.create(function(coro)
local opts = {}
pickers
.new(opts, {
prompt_title = "Path to executable",
finder = finders.new_oneshot_job(
{ "fd", "--hidden", "--no-ignore", "--type", "x" },
{}
),
sorter = conf.generic_sorter(opts),
attach_mappings = function(buffer_number)
actions.select_default:replace(function()
actions.close(buffer_number)
coroutine.resume(coro, action_state.get_selected_entry()[1])
end)
return true
end,
})
:find()
end)
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
{
name = "Launch(lldb-dap)",
type = "lldb",
request = "launch",
program = function()
return coroutine.create(function(coro)
local opts = {}
pickers
.new(opts, {
prompt_title = "Path to executable",
finder = finders.new_oneshot_job(
{ "fd", "--hidden", "--no-ignore", "--type", "x" },
{}
),
sorter = conf.generic_sorter(opts),
attach_mappings = function(buffer_number)
actions.select_default:replace(function()
actions.close(buffer_number)
coroutine.resume(coro, action_state.get_selected_entry()[1])
end)
return true
end,
})
:find()
end)
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
args = {},
env = function()
local variables = {}
for k, v in pairs(vim.fn.environ()) do
table.insert(variables, string.format("%s=%s", k, v))
end
return variables
end,
},
},
}
dap.listeners.before.attach.dapui_config = function()
dapui.open()
end
dap.listeners.before.launch.dapui_config = function()
dapui.open()
end
dap.listeners.before.event_terminated.dapui_config = function()
dapui.close()
end
dap.listeners.before.event_exited.dapui_config = function()
dapui.close()
end
require("persistent-breakpoints").setup({
load_breakpoints_event = { "BufReadPost" },
})
end,
}
+28 -26
View File
@@ -1,29 +1,31 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
}
{
"nvim-pack/nvim-spectre",
},
{
"LintaoAmons/cd-project.nvim",
opts = {
auto_register_project = true,
},
},
}
-119
View File
@@ -1,119 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗]],
[[████╗ ██║██╔�����██╔���██╗██║ ██║██║████╗ ████║]],
[[██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║]],
[[██║╚██╗██║██╔â•�â•�â•� ██║ ██║╚██╗ â–ˆâ
–ˆâ•”â•�██║██║╚██╔â•�██║]],
[[██║ ╚████║███████╗╚██████╔� ╚████╔� ██║██║ ╚�� ██║]],
[[╚�� ╚����╚������� ╚������ ╚���� ╚��╚�� ╚��]],
[[]],
},
shortcut = {
{
icon = " ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = " Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "ï…› New file",
group = "Macro",
key = "n",
action = "NvimTreeToggle",
},
{
desc = "� Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "� Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-106
View File
@@ -1,106 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-106
View File
@@ -1,106 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = "¿ ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = "¿ Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "¿ Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "¿ Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-112
View File
@@ -1,112 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = " ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = " Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "� Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "� Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
-118
View File
@@ -1,118 +0,0 @@
return {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
config = function(_, opts)
require("nvim-autopairs").setup(opts)
end,
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"folke/todo-comments.nvim",
event = "VeryLazy",
cmd = { "TodoTelescope", "TodoLocList" },
config = true,
-- stylua: ignore
keys = {
{ "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" },
{ "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" },
{ "<leader>tt", "<cmd>TodoTelescope<cr>", desc = "List Todo in Telescope" },
{ "<leader>tl", "<cmd>TodoLocList<cr>", desc = "List Todo in LocList" },
},
},
{
"nvimdev/dashboard-nvim",
init = function()
vim.cmd([[hi DashboardHeader guifg=#ee872d gui=bold]])
vim.cmd([[hi DashboardProjectTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardProjectIcon guifg=#89ca78]])
vim.cmd([[hi DashboardMruTitle guifg=#d55fde gui=bold]])
vim.cmd([[hi DashboardShortCut guifg=#89ca78 gui=bold]])
end,
opts = {
theme = "hyper",
config = {
header = {
[[]],
[[¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿]],
[[¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿]],
[[¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿ ¿¿¿]],
[[¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿]],
[[]],
},
shortcut = {
{
icon = " ", --
desc = " Files",
group = "Label",
key = "f",
action = "Telescope find_files",
},
{
desc = " Find text",
group = "@property",
key = "g",
action = "Telescope live_grep ",
},
{
desc = "ï…› New file",
group = "Macro",
key = "n",
action = "NvimTreeToggle",
},
{
desc = "� Config",
group = "DiagnosticHint",
key = "c",
action = "e $MYVIMRC ",
},
{
desc = "� Quit",
group = "Number",
key = "q",
action = "qa",
},
-- {
-- desc = " Recent files",
-- group = "",
-- key = "r",
-- action = "Telescope oldfiles ",
-- },
-- {
-- desc = "󰊳 Update",
-- group = "@property",
-- key = "u",
-- action = "Lazy update",
-- },
-- {
-- icon="",
-- icon_hl = "@variable",
-- desc = "Apps",
-- group = "DiagnosticHint",
-- key = "a",
-- action = "Telescope app",
-- },
-- {
-- desc = " dotfiles",
-- group = "Number",
-- key = "d",
-- action = "Telescope dotfiles",
-- },
},
},
hide = {
statusline = true, -- hide statusline default is true
tabline = false, -- hide the tabline
winbar = true, -- hide winbar
},
},
}
}
+34 -10
View File
@@ -1,12 +1,36 @@
return {
'stevearc/conform.nvim',
opts = {
formatters_by_ft = {
cpp = { "clang-format", lsp_format = "fallback"}
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback",
},
},
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
cpp = { "clang-format", lsp_format = "never" },
lua = { "stylua", prettier = "fallback" },
cmake = { "cmake_format", lsp_format = "fallback" },
["*"] = { "codespell" },
},
formatters = {
-- Apply to ALL formatters that use temp files
["*"] = {
tmpfile_format = "/tmp/.conform.$RANDOM.$FILENAME",
},
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback",
},
},
config = function(opts)
local conform = require("conform")
conform.setup(opts)
local util = require("conform.util")
local original_tmpfile = util.tmpfile_name
util.tmpfile_name = function(ctx, formatter)
return string.format(
"/tmp/.conform.%s.%s",
math.random(1000000, 9999999),
vim.fn.fnamemodify(ctx.filename, ":t")
)
end
end,
}
+51
View File
@@ -0,0 +1,51 @@
return {
"NeogitOrg/neogit",
lazy = true,
dependencies = {
"nvim-lua/plenary.nvim", -- required
"sindrets/diffview.nvim", -- optional
"m00qek/baleia.nvim", -- optional
"nvim-telescope/telescope.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
},
cmd = "Neogit",
opts = {
git_services = {
["github.com"] = {
pull_request = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1",
commit = "https://github.com/${owner}/${repository}/commit/${oid}",
tree = "https://${host}/${owner}/${repository}/tree/${branch_name}",
},
["bitbucket.org"] = {
pull_request = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1",
commit = "https://bitbucket.org/${owner}/${repository}/commits/${oid}",
tree = "https://bitbucket.org/${owner}/${repository}/branch/${branch_name}",
},
["gitlab.com"] = {
pull_request = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
commit = "https://gitlab.com/${owner}/${repository}/-/commit/${oid}",
tree = "https://gitlab.com/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads",
},
["azure.com"] = {
pull_request = "https://dev.azure.com/${owner}/_git/${repository}/pullrequestcreate?sourceRef=${branch_name}&targetRef=${target}",
commit = "",
tree = "",
},
["codeberg.org"] = {
pull_request = "https://${host}/${owner}/${repository}/compare/${branch_name}",
commit = "https://${host}/${owner}/${repository}/commit/${oid}",
tree = "https://${host}/${owner}/${repository}/src/branch/${branch_name}",
},
["git.protei.ru"] = {
pull_request = "https://git.protei.ru/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
commit = "https://git.protei.ru/${owner}/${repository}/-/commit/${oid}",
tree = "https://git.protei.ru/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads",
},
["git.faumaray.ru"] = {
pull_request = "https://git.faumaray.ru/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
commit = "https://git.faumaray.ru/${owner}/${repository}/-/commit/${oid}",
tree = "https://git.faumaray.ru/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads",
},
},
}
}
+168 -80
View File
@@ -1,82 +1,170 @@
return {
"rebelot/heirline.nvim",
dependencies = { "Zeioth/heirline-components.nvim" },
opts = function()
local lib = require "heirline-components.all"
return {
opts = {
disable_winbar_cb = function(args) -- We do this to avoid showing it on the greeter.
local is_disabled = not require("heirline-components.buffer").is_valid(args.buf) or
lib.condition.buffer_matches({
buftype = { "terminal", "prompt", "nofile", "help", "quickfix" },
filetype = { "NvimTree", "neo%-tree", "dashboard", "Outline", "aerial" },
}, args.buf)
return is_disabled
end,
},
tabline = { -- UI upper bar
-- lib.component.tabline_conditional_padding(),
-- lib.component.tabline_buffers(),
-- lib.component.fill { hl = { bg = "tabline_bg" } },
-- lib.component.tabline_tabpages()
},
winbar = { -- UI breadcrumbs bar
init = function(self) self.bufnr = vim.api.nvim_get_current_buf() end,
fallthrough = false,
-- Winbar for terminal, neotree, and aerial.
{
condition = function() return not lib.condition.is_active() end,
{
lib.component.neotree(),
lib.component.compiler_play(),
lib.component.fill(),
lib.component.compiler_build_type(),
lib.component.compiler_redo(),
lib.component.aerial(),
},
},
-- Regular winbar
{
lib.component.neotree(),
lib.component.compiler_play(),
lib.component.fill(),
lib.component.breadcrumbs(),
lib.component.fill(),
lib.component.compiler_redo(),
lib.component.aerial(),
}
},
statuscolumn = { -- UI left column
init = function(self) self.bufnr = vim.api.nvim_get_current_buf() end,
lib.component.foldcolumn(),
lib.component.numbercolumn(),
lib.component.signcolumn(),
} or nil,
statusline = { -- UI statusbar
hl = { fg = "fg", bg = "bg" },
lib.component.mode(),
lib.component.git_branch(),
lib.component.file_info(),
lib.component.git_diff(),
lib.component.diagnostics(),
lib.component.fill(),
lib.component.cmd_info(),
lib.component.fill(),
lib.component.lsp(),
lib.component.compiler_state(),
lib.component.virtual_env(),
lib.component.nav(),
lib.component.mode { surround = { separator = "right" } },
},
}
end,
config = function(_, opts)
local heirline = require "heirline"
local heirline_components = require "heirline-components.all"
"rebelot/heirline.nvim",
dependencies = { "Zeioth/heirline-components.nvim" },
opts = function()
local utils = require("heirline.utils")
local function setup_colors()
return {
bright_bg = utils.get_highlight("Folded").bg,
bright_fg = utils.get_highlight("Folded").fg,
red = utils.get_highlight("DiagnosticError").fg,
dark_red = utils.get_highlight("DiffDelete").bg,
green = utils.get_highlight("String").fg,
blue = utils.get_highlight("Function").fg,
gray = utils.get_highlight("NonText").fg,
orange = utils.get_highlight("Constant").fg,
purple = utils.get_highlight("Statement").fg,
cyan = utils.get_highlight("Special").fg,
diag_warn = utils.get_highlight("DiagnosticWarn").fg,
diag_error = utils.get_highlight("DiagnosticError").fg,
diag_hint = utils.get_highlight("DiagnosticHint").fg,
diag_info = utils.get_highlight("DiagnosticInfo").fg,
git_del = utils.get_highlight("diffDeleted").fg,
git_add = utils.get_highlight("diffAdded").fg,
git_change = utils.get_highlight("diffChanged").fg,
}
end
-- Setup
heirline_components.init.subscribe_to_events()
heirline.load_colors(heirline_components.hl.get_colors())
heirline.setup(opts)
end,
}
-- require("heirline").load_colors(setup_colors)
-- or pass it to config.opts.colors
vim.api.nvim_create_augroup("Heirline", { clear = true })
vim.api.nvim_create_autocmd("ColorScheme", {
callback = function()
utils.on_colorscheme(setup_colors)
end,
group = "Heirline",
})
local Spacer = { provider = " " }
local function rpad(child)
return {
condition = child.condition,
child,
Spacer,
}
end
local function OverseerTasksForStatus(status)
return {
condition = function(self)
return self.tasks[status]
end,
provider = function(self)
return string.format("%s%d", self.symbols[status], #self.tasks[status])
end,
hl = function(self)
return {
fg = utils.get_highlight(string.format("Overseer%s", status)).fg,
}
end,
}
end
local Overseer = {
condition = function()
return package.loaded.overseer
end,
init = function(self)
local tasks = require("overseer.task_list").list_tasks({ unique = true, include_ephemeral = true })
local tasks_by_status = require("overseer.util").tbl_group_by(tasks, "status")
self.tasks = tasks_by_status
end,
static = {
symbols = {
["CANCELED"] = "",
["FAILURE"] = "󰅚 ",
["SUCCESS"] = "󰄴 ",
["RUNNING"] = "󰑮 ",
},
},
rpad(OverseerTasksForStatus("CANCELED")),
rpad(OverseerTasksForStatus("RUNNING")),
rpad(OverseerTasksForStatus("SUCCESS")),
rpad(OverseerTasksForStatus("FAILURE")),
}
local lib = require("heirline-components.all")
return {
opts = {
disable_winbar_cb = function(args) -- We do this to avoid showing it on the greeter.
local is_disabled = not require("heirline-components.buffer").is_valid(args.buf)
or lib.condition.buffer_matches({
buftype = { "terminal", "prompt", "nofile", "help", "quickfix" },
filetype = { "NvimTree", "neo%-tree", "dashboard", "Outline", "aerial" },
}, args.buf)
return is_disabled
end,
},
tabline = { -- UI upper bar
-- lib.component.tabline_conditional_padding(),
-- lib.component.tabline_buffers(),
-- lib.component.fill { hl = { bg = "tabline_bg" } },
-- lib.component.tabline_tabpages()
},
winbar = { -- UI breadcrumbs bar
init = function(self)
self.bufnr = vim.api.nvim_get_current_buf()
end,
fallthrough = false,
-- Winbar for terminal, neotree, and aerial.
{
condition = function()
return not lib.condition.is_active()
end,
{
lib.component.neotree(),
lib.component.compiler_play(),
lib.component.fill(),
lib.component.compiler_build_type(),
lib.component.compiler_redo(),
lib.component.aerial(),
},
},
-- Regular winbar
{
lib.component.neotree(),
lib.component.compiler_play(),
lib.component.fill(),
lib.component.breadcrumbs(),
lib.component.fill(),
lib.component.compiler_redo(),
lib.component.aerial(),
},
},
statuscolumn = { -- UI left column
init = function(self)
self.bufnr = vim.api.nvim_get_current_buf()
end,
lib.component.foldcolumn(),
lib.component.numbercolumn(),
lib.component.signcolumn(),
} or nil,
statusline = { -- UI statusbar
hl = { fg = "fg", bg = "bg" },
lib.component.mode(),
lib.component.git_branch(),
lib.component.file_info(),
lib.component.git_diff(),
lib.component.diagnostics(),
Overseer,
lib.component.fill(),
lib.component.cmd_info(),
lib.component.fill(),
lib.component.lsp(),
lib.component.compiler_state(),
lib.component.virtual_env(),
lib.component.nav(),
lib.component.mode({ surround = { separator = "right" } }),
},
}
end,
config = function(_, opts)
local heirline = require("heirline")
local heirline_components = require("heirline-components.all")
-- Setup
heirline_components.init.subscribe_to_events()
heirline.load_colors(heirline_components.hl.get_colors())
heirline.setup(opts)
end,
}
+1 -16
View File
@@ -3,22 +3,7 @@ return {
{
"akioweh/lsp-document-highlight.nvim",
lazy = false,
keys = {
{
"[[",
function()
require("lsp-document-highlight").jump(-vim.v.count1, true)
end,
desc = "Previous Reference",
},
{
"]]",
function()
require("lsp-document-highlight").jump(vim.v.count1, true)
end,
desc = "Next Reference",
},
},
---@type LDH.config
opts = {
throttle = 50,
+72 -324
View File
@@ -1,6 +1,6 @@
return {
'neovim/nvim-lspconfig',
dependencies = { 'saghen/blink.cmp', 'ibhagwan/fzf-lua', {
'neovim/nvim-lspconfig',
dependencies = { 'saghen/blink.cmp', 'ibhagwan/fzf-lua', {
"nvimdev/lspsaga.nvim",
event = "LspAttach",
opts = {
@@ -13,331 +13,79 @@ return {
},
}, },
-- example using `opts` for defining servers
opts = {
servers = {
lua_ls = {},
clangd = {
cmd = {
"/opt/clangd/bin/clangd",
--"clangd"),
"--compile-commands-dir=build",
"--all-scopes-completion",
"--background-index",
"--clang-tidy",
"--completion-style=bundled",
"--experimental-modules-support",
"--function-arg-placeholders=1",
"--header-insertion=iwyu",
"--header-insertion-decorators",
"--malloc-trim",
"--pch-storage=memory"
-- example using `opts` for defining servers
opts = {
servers = {
neocmakelsp = {},
lua_ls = {},
clangd = {
cmd = {
-- "/opt/clangd/bin/clangd",
"clangd",
"--compile-commands-dir=build",
"--all-scopes-completion",
"--background-index",
"--clang-tidy",
"--completion-style=bundled",
"--experimental-modules-support",
"--function-arg-placeholders=1",
"--header-insertion=iwyu",
"--header-insertion-decorators",
"--malloc-trim",
"--pch-storage=memory"
}
}
}
}
}
},
config = function(_, opts)
local keymap = vim.keymap
local autocmd = vim.api.nvim_create_autocmd -- create autocmd
local utils = require("utils")
local map = utils.map
local augroup = utils.augroup
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
callback = function(ev)
-- Buffer local mappings.
-- See `:help vim.lsp.*` for documentation on any of the below functions
local opts = { buffer = ev.buf, silent = true }
local bufnr = ev.buf
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client.server_capabilities.inlayHintProvider then
vim.lsp.inlay_hint.enable(true)
end
if client.server_capabilities.hoverProvider then
map("n", "K", function()
vim.lsp.buf.hover()
end, opts, "get hover info")
end
if client.server_capabilities.semanticTokensProvider then
map("n", "<leader>us", function()
utils.toggle("enable_semantic_tokens", { global = true }, nil)
if vim.g["enable_semantic_tokens"] then
vim.lsp.semantic_tokens.start(bufnr, client.id)
else
vim.lsp.semantic_tokens.stop(bufnr, client.id)
end
end, opts, "toggle semantic token highlighting")
end
if client.server_capabilities.signatureHelpProvider then
map(
"n",
"<leader>k",
vim.lsp.buf.signature_help,
opts,
"get fn signature help"
)
end
if client.server_capabilities.declarationProvider then
map(
"n",
"<leader>gD",
vim.lsp.buf.declaration,
opts,
"goto declaration"
)
end
-- if client.server_capabilities.completionProvider then
-- vim.bo[bufnr].omnifunc = "v:lua.vim.lsp.omnifunc"
-- end
if client.server_capabilities.definitionProvider then
-- vim.bo[bufnr].tagfunc = "v:lua.vim.lsp.tagfunc"
map("n", "<leader>gd", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga goto_definition]])
else
vim.lsp.buf.definition()
end
end, opts, "goto definition")
if utils.has("lspsaga.nvim") then
map("n", "<leader>pd", function()
vim.cmd([[Lspsaga peek_definition]])
end, opts, "peek definition")
end
end
if client.server_capabilities.typeDefinitionProvider then
map("n", "<leader>gt", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga goto_type_definition]])
else
vim.lsp.buf.type_definition()
end
end, opts, "goto type definition")
if utils.has("lspsaga.nvim") then
map("n", "<leader>pt", function()
vim.cmd([[Lspsaga peek_type_definition]])
end, opts, "peek type definition")
end
end
if client.server_capabilities.implementationProvider then
map("n", "<leader>gi", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga finder imp+def]])
else
vim.lsp.buf.implementation()
end
end, opts, "goto type implementation")
end
if client.server_capabilities.referencesProvider then
map("n", "<leader>gr", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga finder ref]])
else
vim.lsp.buf.references({})
end
end, opts, "goto type references")
end
if client.server_capabilities.documentHighlightProvider then
vim.api.nvim_set_hl(0, "LspReferenceRead", {
link = "DiffText",
},
config = function(_, opts)
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client and client.server_capabilities.inlayHintProvider then
vim.lsp.inlay_hint.enable(true)
end
end,
})
vim.api.nvim_set_hl(0, "LspReferenceText", {
link = "IncSearch",
for server, config in pairs(opts.servers) do
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
}
config.capabilities = require("blink.cmp").get_lsp_capabilities(capabilities)
vim.lsp.config(server, config)
vim.lsp.enable(server)
end
vim.api.nvim_create_user_command("LspInfo", "checkhealth vim.lsp", {
desc = "Show LSP Info",
})
vim.api.nvim_set_hl(0, "LspRefDiffTexterenceWrite", {
link = "WildMenu",
vim.api.nvim_create_user_command("LspLog", function(_)
local log_path = vim.lsp.log.get_filename()
vim.cmd(string.format("edit %s", log_path))
end, {
desc = "Show LSP log",
})
local doc_highlight = augroup("lsp_document_highlight")
local enable_highlight = function()
autocmd({ "CursorHold", "CursorHoldI" }, {
group = doc_highlight,
buffer = bufnr,
callback = vim.lsp.buf.document_highlight,
})
autocmd("CursorMoved", {
group = doc_highlight,
buffer = bufnr,
callback = vim.lsp.buf.clear_references,
})
end
local disable_highlight = function()
vim.lsp.buf.clear_references()
vim.api.nvim_clear_autocmds({
buffer = bufnr,
group = doc_highlight,
})
end
map("n", "<leader>uh", function()
utils.toggle(
"highlight",
{},
{ enable_highlight, disable_highlight }
)
vim.b[vim.fn.bufnr()]["highlight"]()
end, opts, "toggle document highlight")
end
if client.server_capabilities.documentSymbolProvider then
map(
"n",
"<leader>ds",
vim.lsp.buf.document_symbol,
opts,
"document symbols"
)
end
if client.server_capabilities.codeActionProvider then
map({ "n", "v" }, "<leader>ca", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga code_action]])
else
vim.lsp.buf.code_action()
end
end, opts, "code action")
end
if client.server_capabilities.documentFormattingProvider then
map("n", "<leader>uf", function()
utils.toggle("autoformat", { global = true })
autocmd("BufWritePre", {
group = augroup("LspFormat"),
callback = function()
if vim.g["autoformat"] then
vim.lsp.buf.format({ async = true })
end
end,
})
end, opts, "toggle autoformat")
map("n", "<leader>f", function()
vim.lsp.buf.format({ async = true })
end, opts, "range format buffer")
end
if client.server_capabilities.documentRangeFormattingProvider then
map("v", "<leader>f", function()
vim.lsp.buf.format({ async = true })
end, opts, "range format buffer")
end
if client.server_capabilities.renameProvider then
map("n", "<leader>rn", function()
vim.lsp.buf.rename()
end, opts, "rename symbol")
vim.api.nvim_create_user_command("LspRestart", "lsp restart", {
desc = "Restart LSP",
})
if utils.has("lspsaga.nvim") then
map("n", "<leader>rnw", function()
vim.cmd([[Lspsaga project_replace]])
end, opts, "rename across workspace")
end
end
if client.server_capabilities.callHierarchyProvider then
map("n", "<leader>ci", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga incoming_calls]])
else
vim.lsp.buf.incoming_calls()
end
end, opts, "incoming calls")
map("n", "<leader>co", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga outgoing_calls]])
else
vim.lsp.buf.outgoing_calls()
end
end, opts, "outgoing calls")
end
if client.server_capabilities.workspaceSymbolProvider then
map(
"n",
"<leader>ws",
vim.lsp.buf.workspace_symbol,
opts,
"list workspace symbols"
)
end
map("n", "[d", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga diagnostic_jump_prev]])
else
vim.diagnostic.jump({count = -1, float = true})
end
end, opts, "goto previous diagnostics")
map("n", "]d", function()
if utils.has("lspsaga.nvim") then
vim.cmd([[Lspsaga diagnostic_jump_next]])
else
vim.diagnostic.jump({count = 1, float = true})
end
end, opts, "goto next diagnostics")
if utils.has("lspsaga.nvim") then
map("n", "<leader>wd", function()
vim.cmd([[Lspsaga show_workspace_diagnostics]]) --can use ++normal to show in loclist
end, opts, "workspace diagnostics")
map("n", "<leader>bd", function()
vim.cmd([[Lspsaga show_buf_diagnostics]])
end, opts, "workspace diagnostics")
map("n", "<leader>wo", function()
vim.cmd([[Lspsaga outline]])
end, opts, "workspace outline")
end
map("n", "<leader>sl", vim.diagnostic.setloclist, opts, "set loclist")
map("n", "<leader>of", vim.diagnostic.open_float, opts, "open float")
map("n", "<leader>wf", function()
vim.print(vim.lsp.buf.list_workspace_folders())
end, opts, "list workspace folders")
map("n", "<leader>rd", function()
print(
"Language server "
.. (vim.lsp.buf.server_ready() and "is ready" or "is not ready")
)
end, opts, "check if lsp is ready")
-- K for hover is now a built-in default in Neovim 0.12
end,
})
for server, config in pairs(opts.servers) do
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
}
-- passing config.capabilities to blink.cmp merges with the capabilities in your
-- `opts[server].capabilities, if you've defined it
config.capabilities = require('blink.cmp').get_lsp_capabilities(capabilities)
vim.lsp.config(server, config)
vim.lsp.enable(server)
end
vim.api.nvim_create_user_command("LspInfo", "checkhealth vim.lsp", {
desc = "Show LSP Info",
})
vim.api.nvim_create_user_command("LspLog", function(_)
local log_path = vim.lsp.log.get_filename()
vim.cmd(string.format("edit %s", log_path))
end, {
desc = "Show LSP log",
})
vim.api.nvim_create_user_command("LspRestart", "lsp restart", {
desc = "Restart LSP",
})
--- show LSP progress (works on Ghostty)
vim.api.nvim_create_autocmd("LspProgress", {
callback = function(ev)
local value = ev.data.params.value
vim.api.nvim_echo({ { value.message or "done" } }, false, {
id = "lsp." .. ev.data.client_id,
kind = "progress",
source = "vim.lsp",
title = value.title,
status = value.kind ~= "end" and "running" or "success",
percent = value.percentage,
})
end,
})
end
}
vim.api.nvim_create_autocmd("LspProgress", {
callback = function(ev)
local value = ev.data.params.value
vim.api.nvim_echo({ { value.message or "done" } }, false, {
id = "lsp." .. ev.data.client_id,
kind = "progress",
source = "vim.lsp",
title = value.title,
status = value.kind ~= "end" and "running" or "success",
percent = value.percentage,
})
end,
})
end,
}
+10
View File
@@ -0,0 +1,10 @@
return {
"stevearc/overseer.nvim",
---@module 'overseer'
---@type overseer.SetupOpts
opts = {
default_template_prompt = "always",
template_dirs = { vim.fn.stdpath("config") .. "/lua/overseer/template" },
templates = { "builtin", "cmake_cpp_modules_provider", "run_watch_provider" },
},
}
+13 -7
View File
@@ -1,8 +1,14 @@
return {
'nvim-telescope/telescope.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
-- optional but recommended
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
}
}
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-file-browser.nvim",
-- optional but recommended
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
},
opts = {},
config = function(opts)
require("telescope").setup(opts)
require("telescope").load_extension("file_browser")
end,
}
+21
View File
@@ -0,0 +1,21 @@
return {
"nvim-neotest/neotest",
name = "neotest",
dependencies = {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-neotest/neotest-plenary",
"alfaix/neotest-gtest",
"orjangj/neotest-ctest",
},
config = function()
require("neotest").setup({
adapters = {
require("neotest-ctest").setup({}),
require("neotest-gtest").setup({}),
},
})
end,
}
+56 -38
View File
@@ -1,40 +1,58 @@
return {
{
"serhez/teide.nvim",
lazy = false,
priority = 1000,
opts = {
on_highlights = function(hl, c)
local prompt = "#2d3149"
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
},
{
"serhez/teide.nvim",
lazy = false,
priority = 1000,
opts = {
on_highlights = function(hl, c)
local prompt = "#2d3149"
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
},
},
{
"hyperb1iss/silkcircuit",
name = "silkcircuit",
opts = {
variant = "glow",
},
config = function(opts)
vim.opt.termguicolors = true
require("silkcircuit").setup(opts)
vim.cmd.colorscheme("silkcircuit")
end,
},
{
"RRethy/base16-nvim",
config = function()
-- require("matugen").setup()
end,
},
-- "nyoom-engineering/oxocarbon.nvim"
}
-- "nyoom-engineering/oxocarbon.nvim"
}
+72 -69
View File
@@ -1,79 +1,49 @@
return {
-- indent guides for Neovim
{
"lukas-reineke/indent-blankline.nvim",
event = { "BufReadPre", "BufNewFile" },
main = "ibl",
opts = {
indent = {
char = "▏",
},
},
},
-- active indent guide and indent text objects
{
"echasnovski/mini.indentscope",
event = { "BufReadPre", "BufNewFile" },
opts = {
-- symbol = "▏",
symbol = "│",
options = { try_as_border = true },
},
init = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
callback = function()
vim.b.miniindentscope_disable = true
end,
})
end,
},
-- better vim.ui
{ "MunifTanjim/nui.nvim", lazy = true },
-- Better `vim.notify()`
{
"rcarriga/nvim-notify",
lazy = true,
keys = {
{
"<leader>un",
function()
require("notify").dismiss({ silent = true, pending = true })
end,
desc = "Clear notifications",
},
},
opts = { timeout = 3000 },
},
{
"folke/noice.nvim",
event = "VeryLazy",
opts = {
views = {
cmdline_popup = {
position = {
row = 5,
col = "50%",
},
size = {
width = 60,
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 8,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
},
lsp = {
progress = {
enabled = false,
},
override = {
-- override the default lsp markdown formatter with Noice
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
-- override the lsp markdown formatter with Noice
["vim.lsp.util.stylize_markdown"] = true,
-- override cmp documentation with Noice (needs the other options to work)
["cmp.entry.get_documentation"] = false,
},
--NOTE: install parsers for markdown and markdown_inline to see markdown documentation
hover = {
enabled = false,
},
@@ -81,21 +51,54 @@ return {
enabled = false,
},
message = {
enabled = true, -- Messages shown by lsp servers
enabled = true,
},
},
health = {
checker = false, -- Disable if you don't want health checks to run
checker = false,
},
presets = {
-- you can enable a preset by setting it to true, or a table that will override the preset config
-- you can also add custom presets that you can enable/disable with enabled=true
bottom_search = false, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = false, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
bottom_search = true,
command_palette = true,
long_message_to_split = false,
inc_rename = false,
lsp_doc_border = false,
},
},
-- Override vim.ui.select AFTER noice sets it up
config = function(_, opts)
require("noice").setup(opts)
vim.ui.select = function(items, select_opts, on_choice)
require("snacks.picker").select(items, select_opts, on_choice)
end
end,
},
{
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
bigfile = { enabled = true },
dashboard = {
enabled = true,
sections = {
{ section = "header" },
{ section = "keys", gap = 1 },
{ icon = "", title = "Recent Files", section = "recent_files", indent = 2, padding = { 2, 2 } },
{ icon = "", title = "Projects", section = "projects", indent = 2, padding = 2 },
},
},
explorer = { enabled = false },
indent = { enabled = true },
input = { enabled = true, position = "bottom" },
picker = { enabled = true }, -- ENABLE picker
notifier = { enabled = true },
quickfile = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = true },
words = { enabled = true },
},
},
}
+7
View File
@@ -0,0 +1,7 @@
return {
-- "Mythos-404/xmake.nvim",
-- sem_version = "^3",
-- lazy = true,
-- event = "BufReadPost",
-- config = true,
}