diff --git a/dprint.json b/dprint.json new file mode 100644 index 00000000..4d7b2024 --- /dev/null +++ b/dprint.json @@ -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" + ] +} diff --git a/init.lua b/init.lua index 75ec535e..20763c40 100644 --- a/init.lua +++ b/init.lua @@ -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 to exit terminal mode - vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) + -- vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- TIP: Disable arrow keys in normal mode -- vim.keymap.set('n', '', 'echo "Use h to move!!"') @@ -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 = { [''] = '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() }, },