Open *.srcjar as zip

This commit is contained in:
Christian Nieves
2024-08-21 16:11:25 +00:00
parent 1dfaac5950
commit d632924ca7
4 changed files with 12 additions and 10 deletions

View 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,
})

View File

@ -14,3 +14,4 @@ package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
require("lazy").setup("plugins") require("lazy").setup("plugins")
require("config.clipboard") require("config.clipboard")
require("config.zip")

View File

@ -7,14 +7,11 @@ return {
end, end,
config = function() config = function()
require("which-key").setup({}) require("which-key").setup({})
-- local wk = require("which-key") local wk = require("which-key")
-- wk.register({
-- wk.register({ [";"] = { ":" } }, { mode = "v" }) ["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
-- wk.register({ [";"] = { ":" } }, { mode = "n" }) ["%."] = { "<C-R>%", "Current File" },
-- }, { mode = "c" })
-- wk.register({
-- ["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
-- }, { mode = "c" })
-- --
-- wk.register({ -- wk.register({
-- ["jk"] = { "<esc>" }, -- ["jk"] = { "<esc>" },

View File

@ -12,8 +12,6 @@ map <Esc>[D <Left>
" remove mapping to be used in nerdtree " remove mapping to be used in nerdtree
inoremap <Nul> <C-n> inoremap <Nul> <C-n>
cnoremap %% <C-R>=fnameescape(expand("%:p:h")."/")<CR>
" move vertically by visual line " move vertically by visual line
" nnoremap j gj " nnoremap j gj
" nnoremap k gk " nnoremap k gk