Web Analytics

brainrot.nvim

⭐ 209 stars Korean by sahaj-b

brainrot.nvim

새로운 오류가 나타날 때 Vine 붐. 마지막 오류를 지우면 Phonk + 어두운 오버레이 + 밈 이미지.

https://github.com/user-attachments/assets/e68578ee-69e5-4fc6-b45a-493a98e8d225

요구사항

설치 (lazy.nvim)

{
  'sahaj-b/brainrot.nvim',
  event = 'VeryLazy',
  opts = {
    -- defaults:

disable_phonk = false, -- skip phonk/overlay on "no errors" phonk_time = 2.5, -- seconds the phonk/image overlay stays min_error_duration = 0.5, -- minimum seconds errors must exist before phonk triggers (0 = instant) block_input = true, -- block input during phonk/overlay dim_level = 60, -- phonk overlay darkness 0..100

sound_enabled = true, -- enable sounds image_enabled = true, -- enable images (needs image.nvim)

boom_volume = 50, -- volume for vine boom sound (0..100) phonk_volume = 50, -- volume for phonk sound (0..100)

boom_sound = nil, -- custom boom sound path (e.g., "~/sounds/boom.ogg") phonk_dir = nil, -- custom phonk folder path (e.g., "~/sounds/phonks") image_dir = nil, -- custom image folder path (e.g., "~/memes/images")

lsp_wide = false, -- track errors workspace-wide(get ALL lsp errors)

}, }

기능 설명

lsp_wide 모드

lsp_wide = true일 때, 현재 버퍼뿐 아니라 작업 공간 내 모든 오류를 추적합니다 (LSP가 지원하는 경우).

명령어

API 사용법

brainrot의 기능을 설정 파일이나 다른 플러그인에서 직접 사용할 수 있습니다. 모듈을 가져와서 다음 함수 중 하나를 호출하세요:

local brainrot = require('brainrot')

-- Trigger the phonk overlay + random phonk sound brainrot.phonk()

-- Trigger vine boom sound brainrot.boom()

-- Toggle/enable/disable boom sounds brainrot.toggle_boom() brainrot.enable_boom() brainrot.disable_boom()

-- Toggle/enable/disable auto-phonk brainrot.toggle_phonk() brainrot.enable_phonk() brainrot.disable_phonk()

예시: 파일 저장 시 Phonk 실행

-- inside init.lua
vim.api.nvim_create_autocmd('BufWritePost', {
  callback = function()
    require('brainrot').phonk()
  end,
})

알려진 문제점

...왜?

그냥 왜냐하면

라이선스

MIT

--- Tranlated By Open Ai Tx | Last indexed: 2026-01-14 ---