Compare commits

..

No commits in common. "e29a422a57703b185a58b994eef32db587645d2f" and "1d824b92c0a8715ff95e41609214ed6225b1abdf" have entirely different histories.

3 changed files with 0 additions and 132 deletions

View File

@ -1,91 +0,0 @@
if true then return {} end -- 暫時停用(不會用🫠)
return {
{
'Vonr/align.nvim',
branch = "v2",
lazy = true,
init = function()
-- Create your mappings here
local NS = { noremap = true, silent = true }
-- Aligns to 1 character
vim.keymap.set(
'x',
'aa',
function()
require'align'.align_to_char({
length = 1,
})
end,
NS
)
-- Aligns to 2 characters with previews
vim.keymap.set(
'x',
'ad',
function()
require'align'.align_to_char({
preview = true,
length = 2,
})
end,
NS
)
-- Aligns to a string with previews
vim.keymap.set(
'x',
'aw',
function()
require'align'.align_to_string({
preview = true,
regex = false,
})
end,
NS
)
-- Aligns to a Vim regex with previews
vim.keymap.set(
'x',
'ar',
function()
require'align'.align_to_string({
preview = true,
regex = true,
})
end,
NS
)
-- Example gawip to align a paragraph to a string with previews
vim.keymap.set(
'n',
'gaw',
function()
local a = require'align'
a.operator(
a.align_to_string,
{
regex = false,
preview = true,
}
)
end,
NS
)
-- Example gaaip to align a paragraph to 1 character
vim.keymap.set(
'n',
'gaa',
function()
local a = require'align'
a.operator(a.align_to_char)
end,
NS
)
end
}
}

View File

@ -1,28 +0,0 @@
return {
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true,
-- use opts = {} for passing setup options
-- this is equivalent to setup({}) function
opts = {
enabled = function(bufnr) return true end, -- control if auto-pairs should be enabled when attaching to a buffer
disable_filetype = { "TelescopePrompt", "spectre_panel", "snacks_picker_input" },
disable_in_macro = true, -- disable when recording or executing a macro
disable_in_visualblock = false, -- disable when insert after visual block mode
disable_in_replace_mode = true,
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
enable_moveright = true,
enable_afterquote = true, -- add bracket pairs after quote
enable_check_bracket_line = true, --- check bracket in same line
enable_bracket_in_quote = true, --
enable_abbr = false, -- trigger abbreviation
break_undo = true, -- switch for basic rule break undo sequence
check_ts = false,
map_cr = true,
map_bs = true, -- map the <BS> key
map_c_h = false, -- Map the <C-h> key to delete a pair
map_c_w = false, -- map <c-w> to delete a pair if possible
},
},
}

View File

@ -1,13 +0,0 @@
return {
{ 'ethanholz/nvim-lastplace',
lazy = true,
event = { "BufReadPost" },
config = function()
require("nvim-lastplace").setup({
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
lastplace_ignore_filetype = { "gitcommit", "gitrebase", "svn", "hgcommit" },
lastplace_open_folds = true,
})
end,
},
}