fix: small fixes
This commit is contained in:
@@ -23,7 +23,6 @@ require("vim._core.ui2").enable({ -- Enable new ui (requires nightly)
|
|||||||
msg = { targets = "msg" }
|
msg = { targets = "msg" }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Editing =====================================================================
|
-- Editing =====================================================================
|
||||||
vim.o.expandtab = true -- Convert tabs to spaces
|
vim.o.expandtab = true -- Convert tabs to spaces
|
||||||
vim.o.formatoptions = 'rqnl1j' -- Improve comment editing
|
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.spelloptions = 'camel' -- Treat camelCase word parts as separate words
|
||||||
vim.o.tabstop = 2 -- Show tab as this number of spaces
|
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.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`).
|
-- Pattern for a start of numbered list (used in `gw`).
|
||||||
vim.o.formatlistpat = [[^\s*[0-9\-\+\*]\+[\.\)]*\s\+]]
|
vim.o.formatlistpat = [[^\s*[0-9\-\+\*]\+[\.\)]*\s\+]]
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ nmap_leader("ef",
|
|||||||
nmap_leader("en", function() MiniNotify.show_history() end, "Notifications")
|
nmap_leader("en", function() MiniNotify.show_history() end, "Notifications")
|
||||||
|
|
||||||
-- Find ========================================================================
|
-- Find ========================================================================
|
||||||
nmap_leader("f:", function() MiniExtra.pickers.history({ scope = ":" }) end, '":" history')
|
|
||||||
nmap_leader("fb", function() MiniPick.builtin.buffers() end, "Buffers")
|
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() end, "Commits (all)")
|
||||||
nmap_leader("fC", function() MiniExtra.pickers.git_commits({ path = "%" }) end, "Commits (buf)")
|
nmap_leader("fC", function() MiniExtra.pickers.git_commits({ path = "%" }) end, "Commits (buf)")
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Config.now_if_args(function()
|
|||||||
local filetypes = {
|
local filetypes = {
|
||||||
'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript',
|
'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript',
|
||||||
'typescript', 'typescriptreact', 'dockerfile', 'yaml', 'markdown', 'dart',
|
'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)
|
Config.autocmd('FileType', filetypes, function(ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user