mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
chore(neovim): Reorder plugins
- mini.indentscope moved inside mini.nvim - markdown: Better header icons
This commit is contained in:
@@ -33,9 +33,9 @@ return {
|
|||||||
build = ":Codeium Auth",
|
build = ":Codeium Auth",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
opts = {
|
opts = {
|
||||||
enable_cmp_source = vim.g.ai_cmp,
|
enable_cmp_source = true,
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
enabled = not vim.g.ai_cmp,
|
enabled = false,
|
||||||
key_bindings = {
|
key_bindings = {
|
||||||
accept = false, -- handled by nvim-cmp / blink.cmp
|
accept = false, -- handled by nvim-cmp / blink.cmp
|
||||||
next = "<M-]>",
|
next = "<M-]>",
|
||||||
|
|||||||
@@ -112,16 +112,43 @@ return {
|
|||||||
main = "ibl",
|
main = "ibl",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Highlights the current level of indentation, and animates the highlighting.
|
-- Tpope's surround but faster and in lua
|
||||||
{
|
{
|
||||||
"echasnovski/mini.indentscope",
|
"kylechui/nvim-surround",
|
||||||
cond = require("config.util").is_not_vscode(),
|
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
opts = {
|
event = "VeryLazy",
|
||||||
|
config = function()
|
||||||
|
-- Configuration here, or leave empty to use defaults
|
||||||
|
require("nvim-surround").setup({})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- mini.nvim: Collection of various small independent plugins/modules
|
||||||
|
{
|
||||||
|
"echasnovski/mini.nvim",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
-- Better Around/Inside textobjects
|
||||||
|
--
|
||||||
|
-- - va) - [V]isually select [A]round [)]paren
|
||||||
|
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||||
|
-- - ci' - [C]hange [I]nside [']quote
|
||||||
|
-- TODO: Learn about the other mini textobjects
|
||||||
|
require("mini.ai").setup({ n_lines = 500 })
|
||||||
|
|
||||||
|
-- gc
|
||||||
|
require("mini.comment").setup()
|
||||||
|
|
||||||
|
require("mini.pairs").setup()
|
||||||
|
|
||||||
|
-- Configure mini.indentscope
|
||||||
|
if require("config.util").is_not_vscode() then
|
||||||
|
require("mini.indentscope").setup({
|
||||||
delay = 100,
|
delay = 100,
|
||||||
symbol = "│",
|
symbol = "│",
|
||||||
options = { try_as_border = true },
|
options = { try_as_border = true },
|
||||||
},
|
})
|
||||||
init = function()
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = {
|
pattern = {
|
||||||
"help",
|
"help",
|
||||||
@@ -137,37 +164,7 @@ return {
|
|||||||
vim.b.miniindentscope_disable = true
|
vim.b.miniindentscope_disable = true
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"kylechui/nvim-surround",
|
|
||||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
|
||||||
event = "VeryLazy",
|
|
||||||
config = function()
|
|
||||||
require("nvim-surround").setup({
|
|
||||||
-- Configuration here, or leave empty to use defaults
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- mini.nvim: Collection of various small independent plugins/modules
|
|
||||||
{
|
|
||||||
"echasnovski/mini.nvim",
|
|
||||||
version = false,
|
|
||||||
config = function()
|
|
||||||
-- Better Around/Inside textobjects
|
|
||||||
--
|
|
||||||
-- - va) - [V]isually select [A]round [)]paren
|
|
||||||
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
|
||||||
-- - ci' - [C]hange [I]nside [']quote
|
|
||||||
require("mini.ai").setup({ n_lines = 500 })
|
|
||||||
|
|
||||||
-- gc
|
|
||||||
require("mini.comment").setup()
|
|
||||||
|
|
||||||
require("mini.pairs").setup()
|
|
||||||
-- require("mini.completion").setup()
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ return {
|
|||||||
},
|
},
|
||||||
heading = {
|
heading = {
|
||||||
sign = false,
|
sign = false,
|
||||||
icons = {},
|
icons = { " ", " ", " ", " ", " ", " " },
|
||||||
backgrounds = {
|
backgrounds = {
|
||||||
"Headline1Bg",
|
"Headline1Bg",
|
||||||
"Headline2Bg",
|
"Headline2Bg",
|
||||||
@@ -117,14 +117,18 @@ return {
|
|||||||
relative_to_current_file = false, ---@type boolean
|
relative_to_current_file = false, ---@type boolean
|
||||||
|
|
||||||
dir_path = function()
|
dir_path = function()
|
||||||
-- TODO: Find a path consistent for both Obsidian and github
|
local root = vim.fn.FindRootDirectory()
|
||||||
return vim.fn.expand("%:t:r") .. "-img"
|
if root ~= "" then
|
||||||
|
return root .. "/.artifacts/img"
|
||||||
|
else
|
||||||
|
return vim.fn.expand("%:p:h") .. "/.artifacts/img"
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
prompt_for_file_name = false, ---@type boolean
|
prompt_for_file_name = false, ---@type boolean
|
||||||
file_name = "%y%m%d-%H%M%S", ---@type string
|
file_name = "%y%m%d-%H%M%S", ---@type string
|
||||||
|
|
||||||
-- Format of the image to be saved, must convert it as well
|
-- Format of the image to be saved: must convert it as well
|
||||||
-- https://stackoverflow.com/a/27269260
|
-- https://stackoverflow.com/a/27269260
|
||||||
extension = "webp", ---@type string
|
extension = "webp", ---@type string
|
||||||
process_cmd = "convert - -quality 75 webp:-", ---@type string
|
process_cmd = "convert - -quality 75 webp:-", ---@type string
|
||||||
|
|||||||
@@ -257,10 +257,6 @@ return {
|
|||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("project_explorer").setup(opts)
|
require("project_explorer").setup(opts)
|
||||||
end,
|
end,
|
||||||
keys = {
|
|
||||||
{ "<leader>fp", "<cmd>ProjectExplorer<cr>", desc = "Project Explorer" },
|
|
||||||
},
|
|
||||||
lazy = false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Session management. Saves your session in the background
|
-- Session management. Saves your session in the background
|
||||||
|
|||||||
Reference in New Issue
Block a user