From c4d76c902550459b7097cc72a74db647a550f908 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 29 Aug 2026 15:54:35 +0200 Subject: [PATCH] fix: small fixes --- plugin/10_options.lua | 2 +- plugin/20_keymaps.lua | 1 - plugin/40_plugins.lua | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/10_options.lua b/plugin/10_options.lua index 0d60542..5330f0e 100644 --- a/plugin/10_options.lua +++ b/plugin/10_options.lua @@ -23,7 +23,6 @@ require("vim._core.ui2").enable({ -- Enable new ui (requires nightly) msg = { targets = "msg" } }) - -- Editing ===================================================================== vim.o.expandtab = true -- Convert tabs to spaces vim.o.formatoptions = 'rqnl1j' -- Improve comment editing @@ -34,6 +33,7 @@ vim.o.smartcase = true -- Respect case if search pattern has upper cas vim.o.spelloptions = 'camel' -- Treat camelCase word parts as separate words vim.o.tabstop = 2 -- Show tab as this number of spaces vim.o.virtualedit = 'block' -- Allow going past end of line in blockwise mode +vim.opt.autoread = true -- Do not prompt to reread files on update -- Pattern for a start of numbered list (used in `gw`). vim.o.formatlistpat = [[^\s*[0-9\-\+\*]\+[\.\)]*\s\+]] diff --git a/plugin/20_keymaps.lua b/plugin/20_keymaps.lua index 546b581..8c47a00 100644 --- a/plugin/20_keymaps.lua +++ b/plugin/20_keymaps.lua @@ -66,7 +66,6 @@ nmap_leader("ef", nmap_leader("en", function() MiniNotify.show_history() end, "Notifications") -- Find ======================================================================== -nmap_leader("f:", function() MiniExtra.pickers.history({ scope = ":" }) end, '":" history') nmap_leader("fb", function() MiniPick.builtin.buffers() end, "Buffers") nmap_leader("fc", function() MiniExtra.pickers.git_commits() end, "Commits (all)") nmap_leader("fC", function() MiniExtra.pickers.git_commits({ path = "%" }) end, "Commits (buf)") diff --git a/plugin/40_plugins.lua b/plugin/40_plugins.lua index 0cbb551..f0582aa 100644 --- a/plugin/40_plugins.lua +++ b/plugin/40_plugins.lua @@ -22,7 +22,7 @@ Config.now_if_args(function() local filetypes = { 'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript', 'typescript', 'typescriptreact', 'dockerfile', 'yaml', 'markdown', 'dart', - 'json', 'xml', 'toml', 'bash', 'gitcommit', 'diff', 'regex', 'zsh' + 'json', 'xml', 'toml', 'bash', 'gitcommit', 'diff', 'regex', 'zsh', 'http' } Config.autocmd('FileType', filetypes, function(ev)