config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

undotree.lua (274B)


      1 ---@diagnostic disable: undefined-global
      2 vim.cmd("packadd nvim.undotree")
      3 vim.keymap.set("n", "<leader>u", function()
      4   require("undotree").open({
      5     command = "topleft " .. math.floor(vim.api.nvim_win_get_width(0) / 3) .. "vnew",
      6   })
      7 end, { desc = "[U]ndotree toggle" })