A Language Server Protocol (LSP) implementation that brings social media slang and internet speak autocompletion to your editor. Express yourself in peak internet culture with predefined snippets and intelligent completions.
- 🚀 Smart autocompletion for social media slang and internet expressions
- 📝 Rich snippet templates for common social media formats
- 💅 Built-in templates for:
- Story templates
- Rant formats
- Ratio responses
- Chat-style reactions
- Flex posts
- Vibe checks
- Tea spilling formats
- Reviews
- Slay reports
- Viral challenges
- Exposed threads
- POV scenarios
- Fit checks
- Trend reviews
- Arguments
# Clone the repository
git clone https://github.com/Jitesh117/brainrot-lsp
cd brainrot-lsp
# Build the project
go build
Add to your config:
local function start_brainrot_lsp()
local filetype = vim.bo.filetype
if filetype == "text" or filetype == "markdown" then
vim.lsp.start {
name = "brainrot-lsp",
cmd = { "path-to/brainrot-lsp" },
root_dir = vim.fn.getcwd(),
}
end
end
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*",
callback = start_brainrot_lsp,
})
Or if you want to test it in your current nvim session, create a file called brainrot.lua. Then add the following:
vim.lsp.start({
name = "brainrot-lsp",
cmd = { "path-to/brainrot-lsp" },
root_dir = vim.fn.getcwd(),
})
Save this file and then run the command :source brainrot.lua
. Now you can access the lsp in your current neovim session. Enjoy!
The LSP server supports any editor with LSP capabilities. Configure your editor to:
- Start the brainrot-lsp binary
- Connect via stdio (default), TCP, WebSocket, or Node.js IPC
Start typing to see contextual completions, or use these triggers:
story
- Generate dramatic story templatesrant
- Create passionate rantsratio
- Generate Twitter-style ratio responsesreaction
- Create chat-style reaction scenesflex
- Generate flexing/bragging templatesvibe
- Create vibe check statusespill
- Generate tea spilling templatesreview
- Create review templatesslay
- Generate slay reportschallenge
- Create viral challenge templatesxposed
- Generate expose thread templatespov
- Create POV scenariosfit
- Generate fit check templatestrend
- Create trend review templates
Built using:
- glsp - Go LSP framework providing:
- Message structures for LSP communication
- Handler system for client methods
- JSON-RPC 2.0 server supporting multiple transport protocols:
- Standard I/O
- TCP
- WebSockets
- Node.js IPC
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- glsp for the excellent LSP framework
- Internet culture for the inspiration
Built with 💀 by Jitesh117