Compare commits
2
Commits
adc75d1e7f
...
a9c376c8f8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9c376c8f8
|
||
|
|
3a41727764
|
@@ -27,6 +27,11 @@ local nmap = function(lhs, rhs, desc, plugin)
|
||||
vim.keymap.set("n", lhs, final_rhs, { desc = desc })
|
||||
end
|
||||
|
||||
local tmap = function(lhs, rhs, desc, plugin)
|
||||
local final_rhs = plugin and lazy_wrap(plugin, rhs) or rhs
|
||||
vim.keymap.set("t", lhs, final_rhs, { desc = desc })
|
||||
end
|
||||
|
||||
local nmap_leader = function(suffix, rhs, desc, plugin)
|
||||
local final_rhs = plugin and lazy_wrap(plugin, rhs) or rhs
|
||||
vim.keymap.set("n", "<Leader>" .. suffix, final_rhs, { desc = desc })
|
||||
@@ -121,3 +126,4 @@ nmap_leader("ts", function() require("terminal").open_terminal_app("lazysql") en
|
||||
|
||||
-- Overwrites ==================================================================
|
||||
nmap("<Esc>", function() vim.cmd("nohlsearch") end, "Clear search highlights")
|
||||
tmap("<C-w>", "<C-\\><C-n><C-w>", "Terminal window navigation")
|
||||
|
||||
@@ -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', 'http'
|
||||
'json', 'xml', 'toml', 'sh', 'bash', 'zsh', 'gitcommit', 'diff', 'regex', 'http'
|
||||
}
|
||||
|
||||
Config.autocmd('FileType', filetypes, function(ev)
|
||||
|
||||
Reference in New Issue
Block a user