Open *.srcjar as zip
This commit is contained in:
6
vim/.vim/lua/config/zip.lua
Normal file
6
vim/.vim/lua/config/zip.lua
Normal file
@ -0,0 +1,6 @@
|
||||
vim.api.nvim_create_autocmd({ "BufReadCmd" }, {
|
||||
pattern = "*.srcjar",
|
||||
callback = function()
|
||||
vim.api.nvim_command("call zip#Browse(expand('<amatch>'))")
|
||||
end,
|
||||
})
|
@ -14,3 +14,4 @@ package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
||||
|
||||
require("lazy").setup("plugins")
|
||||
require("config.clipboard")
|
||||
require("config.zip")
|
||||
|
@ -7,14 +7,11 @@ return {
|
||||
end,
|
||||
config = function()
|
||||
require("which-key").setup({})
|
||||
-- local wk = require("which-key")
|
||||
--
|
||||
-- wk.register({ [";"] = { ":" } }, { mode = "v" })
|
||||
-- wk.register({ [";"] = { ":" } }, { mode = "n" })
|
||||
--
|
||||
-- wk.register({
|
||||
-- ["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
||||
-- }, { mode = "c" })
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
||||
["%."] = { "<C-R>%", "Current File" },
|
||||
}, { mode = "c" })
|
||||
--
|
||||
-- wk.register({
|
||||
-- ["jk"] = { "<esc>" },
|
||||
|
Reference in New Issue
Block a user