migrate from previous init

This commit is contained in:
Your Name 2026-07-12 07:16:57 +08:00
parent 5e2503b12a
commit b99a79df23
2 changed files with 44 additions and 10 deletions

18
dprint.json Normal file
View File

@ -0,0 +1,18 @@
{
"typescript": {},
"json": {},
"markdown": {},
"toml": {},
"malva": {},
"markup": {},
"yaml": {},
"plugins": [
"https://plugins.dprint.dev/typescript-0.96.1.wasm",
"https://plugins.dprint.dev/json-0.23.0.wasm",
"https://plugins.dprint.dev/markdown-0.22.1.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.16.0.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.27.3.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.6.0.wasm"
]
}

View File

@ -99,7 +99,7 @@ do
vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = false
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.o`
@ -122,7 +122,9 @@ do
-- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
vim.schedule(function() vim.o.clipboard = 'unnamedplus' end)
vim.schedule(function()
-- vim.opt.clipboard = 'unnamedplus'
end)
-- Enable break indent
vim.o.breakindent = true
@ -217,7 +219,7 @@ do
--
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
-- or just use <C-\><C-n> to exit terminal mode
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- TIP: Disable arrow keys in normal mode
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
@ -430,7 +432,17 @@ do
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
-- - sd' - [S]urround [D]elete [']quotes
-- - sr)' - [S]urround [R]eplace [)] [']
require('mini.surround').setup()
require('mini.surround').setup {
mappings = {
add = 'ra',
delete = 'rd',
find = 'rf',
find_left = 'rF',
highlight = 'rh',
replace = 'rr',
update_n_lines = 'rn',
},
}
-- Simple and easy statusline.
-- You could remove this setup call if you don't like it,
@ -494,12 +506,16 @@ do
-- You can put your default mappings / updates / etc. in here
-- All the info you're looking for is in `:help telescope.setup()`
--
-- defaults = {
-- mappings = {
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
-- },
-- },
-- pickers = {}
defaults = {
file_ignore_patterns = {
'node_modules',
'package-lock.json',
'yarn.lock',
'pnpm-lock.yaml',
'lazy-lock.json',
},
mappings = {},
},
extensions = {
['ui-select'] = { require('telescope.themes').get_dropdown() },
},