Skip to content
المشاريع

حول

مدير أنيق للنوافذ الطرفية العائمة في Neovim.

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Floaterm

A beautiful toggleable floating window for managing terminal buffers within Neovim

floaterm-with-border floaterm-noborder

  • Youtube video showcasing it :

Watch on YouTube

Install

{
    "nvzone/floaterm",
    dependencies = "nvzone/volt",
    opts = {},
    cmd = "FloatermToggle",
}          

Default config

 {
    border = false,
    size = { h = 60, w = 70 },

    -- to use, make this func(buf)
    mappings = { sidebar = nil, term = nil},

    -- Default sets of terminals you'd like to open
    terminals = {
      { name = "Terminal" },
      -- cmd can be function too
      { name = "Terminal", cmd = "neofetch" },
      -- More terminals
    },
}

Mappings

This are the mappings for sidebar

  • a -> add new terminal
  • e -> edit terminal name
  • Pressing any number within sidebar will switch to that terminal

Must be pressed in main terminal buffer

  • Ctrl + h -> Switch to sidebar
  • Ctrl + j -> Cycle to prev terminal
  • Ctrl + k -> Cycle to next terminal

Add new mapping

  {
     mappings = {
       term = function(buf)
         vim.keymap.set({ "n", "t" }, "<C-p>", function()
           require("floaterm.api").cycle_term_bufs "prev"
         end, { buffer = buf })
       end,
     },
  },

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…