commit
95dc3b686a
35 files changed
+3045
No files matched your search
@@ -0,0 +1,183 @@
|
||||
return {
|
||||
'saghen/blink.cmp',
|
||||
-- optional: provides snippets for the snippet source
|
||||
dependencies = { 'rafamadriz/friendly-snippets', "onsails/lspkind.nvim", "xzbdmw/colorful-menu.nvim", "nvim-tree/nvim-web-devicons"},
|
||||
|
||||
-- use a release tag to download pre-built binaries
|
||||
version = "v1.10.2",
|
||||
-- AND/OR build from source
|
||||
-- build = 'cargo build --release',
|
||||
-- If you use nix, you can build from source with:
|
||||
-- build = 'nix run .#build-plugin',
|
||||
|
||||
---@module 'blink.cmp'
|
||||
---@type blink.cmp.Config
|
||||
opts = {
|
||||
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
||||
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
||||
-- 'enter' for enter to accept
|
||||
-- 'none' for no mappings
|
||||
--
|
||||
-- All presets have the following mappings:
|
||||
-- C-space: Open menu or open docs if already open
|
||||
-- C-n/C-p or Up/Down: Select next/previous item
|
||||
-- C-e: Hide menu
|
||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||
--
|
||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||
-- in your blink configuration
|
||||
keymap = {
|
||||
preset = 'none',
|
||||
|
||||
-- If completion hasn't been triggered yet, insert the first suggestion; if it has, cycle to the next suggestion.
|
||||
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
|
||||
['<C-e>'] = { 'hide', 'fallback' },
|
||||
|
||||
["<Tab>"] = { "select_next", "snippet_forward", "fallback" },
|
||||
["<S-Tab>"] = { "select_prev", "snippet_backward", "fallback" },
|
||||
|
||||
-- Selection with Enter
|
||||
["<CR>"] = { "accept", "fallback" },
|
||||
|
||||
['<Up>'] = { 'select_prev', 'fallback' },
|
||||
['<Down>'] = { 'select_next', 'fallback' },
|
||||
['<C-p>'] = { 'select_prev', 'fallback_to_mappings' },
|
||||
['<C-n>'] = { 'select_next', 'fallback_to_mappings' },
|
||||
|
||||
['<C-b>'] = { 'scroll_documentation_up', 'fallback' },
|
||||
['<C-f>'] = { 'scroll_documentation_down', 'fallback' },
|
||||
|
||||
['<C-k>'] = { 'show_signature', 'hide_signature', 'fallback' },
|
||||
},
|
||||
appearance = {
|
||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||
-- Adjusts spacing to ensure icons are aligned
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
|
||||
-- (Default) Only show the documentation popup when manually triggered
|
||||
completion = {
|
||||
ghost_text = {
|
||||
enabled = true
|
||||
},
|
||||
accept = {
|
||||
create_undo_point = true,
|
||||
auto_brackets = {
|
||||
enabled = true,
|
||||
kind_resolution = {
|
||||
enabled = true,
|
||||
},
|
||||
semantic_token_resolution = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
direction_priority = function()
|
||||
local ctx = require('blink.cmp').get_context()
|
||||
local item = require('blink.cmp').get_selected_item()
|
||||
if ctx == nil or item == nil then return { 's', 'n' } end
|
||||
|
||||
local item_text = item.textEdit ~= nil and item.textEdit.newText or item.insertText or item.label
|
||||
local is_multi_line = item_text:find('\n') ~= nil
|
||||
|
||||
-- after showing the menu upwards, we want to maintain that direction
|
||||
-- until we re-open the menu, so store the context id in a global variable
|
||||
if is_multi_line or vim.g.blink_cmp_upwards_ctx_id == ctx.id then
|
||||
vim.g.blink_cmp_upwards_ctx_id = ctx.id
|
||||
return { 'n', 's' }
|
||||
end
|
||||
return { 's', 'n' }
|
||||
end,
|
||||
columns = { { "kind_icon" }, { "label", gap = 1 } },
|
||||
components = {
|
||||
kind_icon = {
|
||||
text = function(ctx)
|
||||
local icon = ctx.kind_icon
|
||||
if vim.tbl_contains({ "Path" }, ctx.source_name) then
|
||||
local dev_icon, _ = require("nvim-web-devicons").get_icon(ctx.label)
|
||||
if dev_icon then
|
||||
icon = dev_icon
|
||||
end
|
||||
else
|
||||
icon = require("lspkind").symbol_map[ctx.kind] or ""
|
||||
end
|
||||
|
||||
return icon .. ctx.icon_gap
|
||||
end,
|
||||
|
||||
-- Optionally, use the highlight groups from nvim-web-devicons
|
||||
-- You can also add the same function for `kind.highlight` if you want to
|
||||
-- keep the highlight groups in sync with the icons.
|
||||
highlight = function(ctx)
|
||||
local hl = ctx.kind_hl
|
||||
if vim.tbl_contains({ "Path" }, ctx.source_name) then
|
||||
local dev_icon, dev_hl = require("nvim-web-devicons").get_icon(ctx.label)
|
||||
if dev_icon then
|
||||
hl = dev_hl
|
||||
end
|
||||
end
|
||||
return hl
|
||||
end,
|
||||
},
|
||||
label = {
|
||||
width = { fill = true, max = 60 },
|
||||
text = function(ctx)
|
||||
local highlights_info = require("colorful-menu").blink_highlights(ctx)
|
||||
if highlights_info ~= nil then
|
||||
-- Or you want to add more item to label
|
||||
return highlights_info.label
|
||||
else
|
||||
return ctx.label
|
||||
end
|
||||
end,
|
||||
highlight = function(ctx)
|
||||
local highlights = {}
|
||||
local highlights_info = require("colorful-menu").blink_highlights(ctx)
|
||||
if highlights_info ~= nil then
|
||||
highlights = highlights_info.highlights
|
||||
end
|
||||
for _, idx in ipairs(ctx.label_matched_indices) do
|
||||
table.insert(highlights, { idx, idx + 1, group = "BlinkCmpLabelMatch" })
|
||||
end
|
||||
-- Do something else
|
||||
return highlights
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
draw = function(opts)
|
||||
if opts.item and opts.item.documentation and opts.item.documentation.value then
|
||||
local out = require("pretty_hover.parser").parse(opts.item.documentation.value)
|
||||
opts.item.documentation.value = out:string()
|
||||
end
|
||||
|
||||
opts.default_implementation(opts)
|
||||
end,
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
preselect = false,
|
||||
auto_insert = false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
-- Default list of enabled providers defined so that you can extend it
|
||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||
},
|
||||
|
||||
-- (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,
|
||||
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
||||
--
|
||||
-- See the fuzzy documentation for more information
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||
signature = { enabled = true }
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
url = "https://git.sr.ht/~chinmay/clangd_extensions.nvim",
|
||||
event = "LspAttach",
|
||||
opts = {}
|
||||
}
|
||||
@@ -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 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,
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
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" },
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
cpp = { "clang-format", lsp_format = "fallback"}
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
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"
|
||||
|
||||
-- Setup
|
||||
heirline_components.init.subscribe_to_events()
|
||||
heirline.load_colors(heirline_components.hl.get_colors())
|
||||
heirline.setup(opts)
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
---@type LazySpec
|
||||
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,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,343 @@
|
||||
return {
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = { 'saghen/blink.cmp', 'ibhagwan/fzf-lua', {
|
||||
"nvimdev/lspsaga.nvim",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
ui = {
|
||||
border = "shadow",
|
||||
},
|
||||
outline = {
|
||||
layout = "float",
|
||||
},
|
||||
},
|
||||
}, },
|
||||
|
||||
-- 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
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",
|
||||
})
|
||||
vim.api.nvim_set_hl(0, "LspReferenceText", {
|
||||
link = "IncSearch",
|
||||
})
|
||||
vim.api.nvim_set_hl(0, "LspRefDiffTexterenceWrite", {
|
||||
link = "WildMenu",
|
||||
})
|
||||
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")
|
||||
|
||||
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
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return{}
|
||||
-- 'nvimdev/lspsaga.nvim',
|
||||
-- event = 'LspAttach',
|
||||
-- config = function()
|
||||
-- require('lspsaga').setup({})
|
||||
-- end,
|
||||
-- dependencies = {
|
||||
-- 'nvim-treesitter/nvim-treesitter', -- optional
|
||||
-- 'nvim-tree/nvim-web-devicons', -- optional
|
||||
-- }
|
||||
--}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"Fildo7525/pretty_hover",
|
||||
event = "LspAttach",
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
-- optional but recommended
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
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,
|
||||
},
|
||||
}
|
||||
-- "nyoom-engineering/oxocarbon.nvim"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
File: treesitter.lua
|
||||
Description: Configuration of tree-sitter
|
||||
See: https://github.com/tree-sitter/tree-sitter
|
||||
]]
|
||||
|
||||
return {
|
||||
"romus204/tree-sitter-manager.nvim",
|
||||
dependencies = {}, -- tree-sitter CLI must be installed system-wide
|
||||
config = function()
|
||||
require("tree-sitter-manager").setup({
|
||||
-- Default Options
|
||||
ensure_installed = {"cpp", "cmake"}, -- list of parsers to install at the start of a neovim session
|
||||
-- border = nil, -- border style for the window (e.g. "rounded", "single"), if nil, use the default border style defined by 'vim.o.winborder'. See :h 'winborder' for more info.
|
||||
auto_install = true, -- if enabled, install missing parsers when editing a new file
|
||||
highlight = true, -- treesitter highlighting is enabled by default
|
||||
-- languages = {}, -- override or add new parser sources
|
||||
-- parser_dir = vim.fn.stdpath("data") .. "/site/parser",
|
||||
-- query_dir = vim.fn.stdpath("data") .. "/site/queries",
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
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 = {
|
||||
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,
|
||||
},
|
||||
signature = {
|
||||
enabled = false,
|
||||
},
|
||||
message = {
|
||||
enabled = true, -- Messages shown by lsp servers
|
||||
},
|
||||
},
|
||||
health = {
|
||||
checker = false, -- Disable if you don't want health checks to run
|
||||
},
|
||||
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
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||
config = function()
|
||||
require("lsp_lines").setup()
|
||||
vim.diagnostic.config({ virtual_lines = true })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
config = true,
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
end,
|
||||
}
|
||||
Reference in new issue
Block a user