diff --git a/lua/plugins/hex.lua b/lua/plugins/hex.lua new file mode 100644 index 0000000..3171844 --- /dev/null +++ b/lua/plugins/hex.lua @@ -0,0 +1,6 @@ +return { + "RaafatTurki/hex.nvim", + config = function() + require("hex").setup() + end +} diff --git a/lua/plugins/luarocks.lua b/lua/plugins/luarocks.lua new file mode 100644 index 0000000..9921a85 --- /dev/null +++ b/lua/plugins/luarocks.lua @@ -0,0 +1,6 @@ +return { + "vhyrro/luarocks.nvim", + opts = { + rocks = { "lua-curl", "nvim-nio", "mimetypes", "xml2lua" } + } +} diff --git a/lua/plugins/rest.lua b/lua/plugins/rest.lua new file mode 100644 index 0000000..1f11684 --- /dev/null +++ b/lua/plugins/rest.lua @@ -0,0 +1,11 @@ +return { + "rest-nvim/rest.nvim", + dependencies = { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + table.insert(opts.ensure_installed, "http") + end, + "j-hui/fidget.nvim" + } +} diff --git a/options.lua b/options.lua index 18cda29..b5cc8ef 100644 --- a/options.lua +++ b/options.lua @@ -8,7 +8,7 @@ vim.opt.cursorline = true vim.opt.nu = true vim.opt.relativenumber = true -vim.o.statuscolumn = "%l %=%{v:relnum?v:relnum:v:lnum} " +vim.o.statuscolumn = "%l %=%{v:relnum?v:lnum:v:lnum} " vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 diff --git a/remap.lua b/remap.lua index ef63955..768dc9b 100644 --- a/remap.lua +++ b/remap.lua @@ -6,6 +6,13 @@ vim.keymap.set("x", "p", "\"_dP") if package.config:sub(1,1) == "\\" then vim.keymap.set("n", "oe", ":!explorer .", { desc = "[O]pen [E]xplorer in current working directory" }) vim.keymap.set("n", "ot", ":!wt -w 0 nt -d .", { desc = "[O]pen Windows [T]erminal in current working directory" }) + vim.keymap.set("n", "oce", function () + local path = vim.api.nvim_buf_get_name(0) + local dir = path:sub(1, path:find('\\[^\\]*$')) + -- vim.cmd(":!echo " .. "(path:sub(1, path:find('\\[^\\]*$')))" .. "") + -- print("Check "..dir) + os.execute("explorer " .. dir) + end, { desc = "[O]pen [C]urrent buffer [Explorer]"}) end -- Telescope