migrate from previous init
This commit is contained in:
parent
5e2503b12a
commit
b99a79df23
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
36
init.lua
36
init.lua
|
|
@ -99,7 +99,7 @@ do
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- 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 ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.o`
|
-- See `:help vim.o`
|
||||||
|
|
@ -122,7 +122,9 @@ do
|
||||||
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
||||||
-- Remove this option if you want your OS clipboard to remain independent.
|
-- Remove this option if you want your OS clipboard to remain independent.
|
||||||
-- See `:help 'clipboard'`
|
-- See `:help 'clipboard'`
|
||||||
vim.schedule(function() vim.o.clipboard = 'unnamedplus' end)
|
vim.schedule(function()
|
||||||
|
-- vim.opt.clipboard = 'unnamedplus'
|
||||||
|
end)
|
||||||
|
|
||||||
-- Enable break indent
|
-- Enable break indent
|
||||||
vim.o.breakindent = true
|
vim.o.breakindent = true
|
||||||
|
|
@ -217,7 +219,7 @@ do
|
||||||
--
|
--
|
||||||
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
|
-- 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
|
-- 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
|
-- TIP: Disable arrow keys in normal mode
|
||||||
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
-- 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
|
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||||
-- - sd' - [S]urround [D]elete [']quotes
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
-- - 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.
|
-- Simple and easy statusline.
|
||||||
-- You could remove this setup call if you don't like it,
|
-- 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
|
-- You can put your default mappings / updates / etc. in here
|
||||||
-- All the info you're looking for is in `:help telescope.setup()`
|
-- All the info you're looking for is in `:help telescope.setup()`
|
||||||
--
|
--
|
||||||
-- defaults = {
|
defaults = {
|
||||||
-- mappings = {
|
file_ignore_patterns = {
|
||||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
'node_modules',
|
||||||
-- },
|
'package-lock.json',
|
||||||
-- },
|
'yarn.lock',
|
||||||
-- pickers = {}
|
'pnpm-lock.yaml',
|
||||||
|
'lazy-lock.json',
|
||||||
|
},
|
||||||
|
mappings = {},
|
||||||
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue