astro-nvim-v3 - archivev8
This commit is contained in:
@@ -27,7 +27,7 @@ return {
|
||||
sessions = {
|
||||
-- Configure auto saving
|
||||
autosave = {
|
||||
last = true, -- auto save last session
|
||||
last = false, -- auto save last session
|
||||
cwd = false, -- auto save session for each working directory
|
||||
},
|
||||
-- Patterns to ignore when saving sessions
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
opts = {
|
||||
-- your config goes here
|
||||
-- or just leave it empty :)
|
||||
enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
|
||||
enabled = false, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
|
||||
execution_message = {
|
||||
enabled = false,
|
||||
message = function() -- message to print on save
|
||||
|
||||
@@ -37,68 +37,68 @@ return {
|
||||
{ "gs", "<Cmd>TSJToggle<CR>", mode = { "n" }, desc = "Toggle splitjoin" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.ai",
|
||||
event = "User AstroFile",
|
||||
opts = function()
|
||||
-- Register to which-key
|
||||
local i = {
|
||||
[" "] = "Whitespace",
|
||||
["?"] = "User Prompt",
|
||||
_ = "Underscore",
|
||||
a = "Argument",
|
||||
b = "Paired ), ], }",
|
||||
c = "Class",
|
||||
d = "Digit(s)",
|
||||
e = "Word in CamelCase & snake_case",
|
||||
f = "Function",
|
||||
g = "Entire file",
|
||||
o = "Block, conditional, loop",
|
||||
q = "Quote `, \", '",
|
||||
t = "Tag",
|
||||
u = "Use/call function & method",
|
||||
U = "Use/call without dot in name",
|
||||
}
|
||||
local a = vim.deepcopy(i)
|
||||
for k, v in pairs(a) do
|
||||
a[k] = v:gsub(" including.*", "")
|
||||
end
|
||||
-- {
|
||||
-- "echasnovski/mini.ai",
|
||||
-- event = "User AstroFile",
|
||||
-- opts = function()
|
||||
-- -- Register to which-key
|
||||
-- local i = {
|
||||
-- [" "] = "Whitespace",
|
||||
-- ["?"] = "User Prompt",
|
||||
-- _ = "Underscore",
|
||||
-- a = "Argument",
|
||||
-- b = "Paired ), ], }",
|
||||
-- c = "Class",
|
||||
-- d = "Digit(s)",
|
||||
-- e = "Word in CamelCase & snake_case",
|
||||
-- f = "Function",
|
||||
-- g = "Entire file",
|
||||
-- o = "Block, conditional, loop",
|
||||
-- q = "Quote `, \", '",
|
||||
-- t = "Tag",
|
||||
-- u = "Use/call function & method",
|
||||
-- U = "Use/call without dot in name",
|
||||
-- }
|
||||
-- local a = vim.deepcopy(i)
|
||||
-- for k, v in pairs(a) do
|
||||
-- a[k] = v:gsub(" including.*", "")
|
||||
-- end
|
||||
|
||||
local ic = vim.deepcopy(i)
|
||||
local ac = vim.deepcopy(a)
|
||||
for key, name in pairs { n = "Next", l = "Last" } do
|
||||
i[key] = vim.tbl_extend("force", { name = "Inside " .. name .. " textobject" }, ic)
|
||||
a[key] = vim.tbl_extend("force", { name = "Around " .. name .. " textobject" }, ac)
|
||||
end
|
||||
require("which-key").register {
|
||||
mode = { "o", "x" },
|
||||
i = i,
|
||||
a = a,
|
||||
}
|
||||
-- local ic = vim.deepcopy(i)
|
||||
-- local ac = vim.deepcopy(a)
|
||||
-- for key, name in pairs { n = "Next", l = "Last" } do
|
||||
-- i[key] = vim.tbl_extend("force", { name = "Inside " .. name .. " textobject" }, ic)
|
||||
-- a[key] = vim.tbl_extend("force", { name = "Around " .. name .. " textobject" }, ac)
|
||||
-- end
|
||||
-- require("which-key").register {
|
||||
-- mode = { "o", "x" },
|
||||
-- i = i,
|
||||
-- a = a,
|
||||
-- }
|
||||
|
||||
-- define custom textobjects
|
||||
local ai = require "mini.ai"
|
||||
return {
|
||||
n_lines = 500,
|
||||
custom_textobjects = {
|
||||
o = ai.gen_spec.treesitter { -- code block
|
||||
a = { "@block.outer", "@conditional.outer", "@loop.outer" },
|
||||
i = { "@block.inner", "@conditional.inner", "@loop.inner" },
|
||||
},
|
||||
f = ai.gen_spec.treesitter { a = "@function.outer", i = "@function.inner" }, -- function
|
||||
c = ai.gen_spec.treesitter { a = "@class.outer", i = "@class.inner" }, -- class
|
||||
t = { "<([%p%w]-)%f[^<%w][^<>]->.-</%1>", "^<.->().*()</[^/]->$" }, -- tags
|
||||
d = { "%f[%d]%d+" }, -- digits
|
||||
e = { -- Word with case
|
||||
{ "%u[%l%d]+%f[^%l%d]", "%f[%S][%l%d]+%f[^%l%d]", "%f[%P][%l%d]+%f[^%l%d]", "^[%l%d]+%f[^%l%d]" },
|
||||
"^().*()$",
|
||||
},
|
||||
u = ai.gen_spec.function_call(), -- u for "Usage"
|
||||
U = ai.gen_spec.function_call { name_pattern = "[%w_]" }, -- without dot in function name
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
-- -- define custom textobjects
|
||||
-- local ai = require "mini.ai"
|
||||
-- return {
|
||||
-- n_lines = 500,
|
||||
-- custom_textobjects = {
|
||||
-- o = ai.gen_spec.treesitter { -- code block
|
||||
-- a = { "@block.outer", "@conditional.outer", "@loop.outer" },
|
||||
-- i = { "@block.inner", "@conditional.inner", "@loop.inner" },
|
||||
-- },
|
||||
-- f = ai.gen_spec.treesitter { a = "@function.outer", i = "@function.inner" }, -- function
|
||||
-- c = ai.gen_spec.treesitter { a = "@class.outer", i = "@class.inner" }, -- class
|
||||
-- t = { "<([%p%w]-)%f[^<%w][^<>]->.-</%1>", "^<.->().*()</[^/]->$" }, -- tags
|
||||
-- d = { "%f[%d]%d+" }, -- digits
|
||||
-- e = { -- Word with case
|
||||
-- { "%u[%l%d]+%f[^%l%d]", "%f[%S][%l%d]+%f[^%l%d]", "%f[%P][%l%d]+%f[^%l%d]", "^[%l%d]+%f[^%l%d]" },
|
||||
-- "^().*()$",
|
||||
-- },
|
||||
-- u = ai.gen_spec.function_call(), -- u for "Usage"
|
||||
-- U = ai.gen_spec.function_call { name_pattern = "[%w_]" }, -- without dot in function name
|
||||
-- },
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
-- Better move by word
|
||||
{
|
||||
"chrisgrieser/nvim-spider",
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
if true then return {} end
|
||||
|
||||
return {
|
||||
"mg979/vim-visual-multi",
|
||||
event = "VeryLazy",
|
||||
|
||||
@@ -12,11 +12,19 @@ return {
|
||||
hide_dotfiles = true,
|
||||
hide_gitignored = true,
|
||||
hide_by_name = {
|
||||
-- '.git',
|
||||
-- '.zip',
|
||||
-- '.rar',
|
||||
-- '.pdf',
|
||||
-- '.DS_Store',
|
||||
-- 'thumbs.db',
|
||||
},
|
||||
never_show = {},
|
||||
|
||||
never_show_by_pattern = { -- uses glob style patterns
|
||||
'*.zip',
|
||||
'*.rar',
|
||||
'*.pdf',
|
||||
},
|
||||
},
|
||||
},
|
||||
enable_git_status = false,
|
||||
|
||||
26
lua/plugins/todo-comments.lua
Normal file
26
lua/plugins/todo-comments.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
if true then return {} end
|
||||
|
||||
return {
|
||||
"folke/todo-comments.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
|
||||
keywords = {
|
||||
FIX = {
|
||||
icon = " ", -- icon used for the sign, and in search results
|
||||
color = "error", -- can be a hex color, or a named color (see below)
|
||||
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
|
||||
-- signs = false, -- configure signs for some keywords individually
|
||||
},
|
||||
TODO = { icon = " ", color = "info" },
|
||||
HACK = { icon = " ", color = "warning" },
|
||||
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
||||
PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
||||
NOTE = { icon = " ", color = "hint", alt = { "INFO" } },
|
||||
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user