hibiscus.nvim
vim-commentary
Our great sponsors
hibiscus.nvim | vim-commentary | |
---|---|---|
7 | 51 | |
100 | 5,700 | |
- | - | |
5.4 | 2.5 | |
5 months ago | 21 days ago | |
Fennel | Vim Script | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hibiscus.nvim
-
Configuring Neovim with Fennel
local function bootstrap(url, ref) local name = url:gsub(".*/", "") local path = vim.fn.stdpath [[data]] .. "/lazy/" .. name if vim.fn.isdirectory(path) == 0 then print(name .. ": installing in data dir...") vim.fn.system { "git", "clone", url, path } if ref then vim.fn.system { "git", "-C", path, "checkout", ref } end vim.cmd [[redraw]] print(name .. ": finished installing") end vim.opt.runtimepath:prepend(path) end bootstrap("https://github.com/udayvir-singh/tangerine.nvim") -- Optional and only needed if you also want the macros bootstrap("https://github.com/udayvir-singh/hibiscus.nvim") require 'tangerine'.setup { target = vim.fn.stdpath [[data]] .. "/tangerine", -- compile files in &rtp rtpdirs = { "ftplugin", }, compiler = { -- disable popup showing compiled files verbose = false, -- compile every time changes are made to fennel files or on entering vim hooks = { "onsave", "oninit" } }, }
-
Swapping to Fennel
I can recommend using Fennel with Tangerine (integration) and Hibiscus (macros). My config here for inspiration.
-
Whenever I'm looking for plugins these days [OC]
For ease of use, you can use conjure for evaluating the code, cmp-conjure for nvim completions, hibiscus.nvim and nyoom.nvim macros for macros, and you can also use nyoom.nvim as a base config.
-
Hibiscus 🌺 -- Fennel eye-candy for neovim
Hibiscus.nvim:
-
Configurando Neovim com Fennel
local function bootstrap (name, url, path) if vim.fn.isdirectory(path) == 0 then print(name .. ": installing in data dir...") vim.fn.system {"git", "clone", "--depth", "1", url, path} vim.cmd [[redraw]] print(name .. ": finished installing") end end bootstrap ( "tangerine.nvim", "https://github.com/udayvir-singh/tangerine.nvim", vim.fn.stdpath "data" .. "/site/pack/packer/start/tangerine.nvim" ) bootstrap ( "hibiscus.nvim", "https://github.com/udayvir-singh/hibiscus.nvim", vim.fn.stdpath "data" .. "/site/pack/packer/start/hibiscus.nvim" ) require'tangerine'.setup{ compiler = { verbose = false, hooks = { "onsave", "oninit" } } }
-
Disable diagnostic while expanding luasnip snippets
Fennel with hibiscus:
-
🍊 Tangerine - Painless Fennel integration in Neovim
But, you can use another plugin of mine Hibiscus which contains bulk of zest and aniseed macros.
vim-commentary
- html css commenting things out
-
A very simple way to comment/uncomment lines and visual selections.
Also, tpope/vim-commentary
-
Plugin for comments
https://github.com/tpope/vim-commentary does what you expect!
-
My Solution to Block Comments
I've replaced most of my custom maps for commenting with tpope's commentary plugin. It's a great plugin. However, I wasn't happy with the lack of multi-line/block comment abilities so I created some maps to compliment the commentary plugin. Here are some maps that can be used with autocmd, FileType and for JavaScript comments.
-
Vim plugin for wrapping/unwrapping line comments
commentary.vim + :h gq?
-
Favorite vimrc configs for coding?
Having said this, there are some useful language independent extensions: jiangmiao/auto-pairs, tpope/vim-commentary, preservim/tagbar, junegunn/vim-peekaboo
-
Neovim config from scratch (Part II)
vim-commentary comment code comfortably with motions and visual selections alike.
-
Anybody have a keymap/config for folding and unfolding a block of code? Also how to comment lines of selected code?
With a plugin like vim-commentary or comment.nvim
-
Colored statusline doesn't load at start; I need to manually source $MYVIMRC
" This file contains common and basic plugins too essential not to include " See https://github.com/junegunn/vim-plug/wiki/tutorial " Auto install vim-plug (if not already installed) if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall endif " Run PlugInstall if there are missing plugins autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) \| PlugInstall --sync | source $MYVIMRC \| endif " enable Vim-Plug: call plug#begin('~/.config/nvim/plugged') " Install/update plugins Plug 'https://github.com/tpope/vim-commentary.git' Plug 'https://github.com/morhetz/gruvbox' " Better C/C++ syntax highlighting; Plug 'https://github.com/jackguo380/vim-lsp-cxx-highlight' call plug#end() "---------- Basic configs ---------------------------------------------------- autocmd vimenter * ++nested colorscheme gruvbox " Enable transparent background let g:gruvbox_transparent_bg = 1
-
Neovim config from scratch (Part I)
Commentary Tim pope's comment plugin
What are some alternatives?
tangerine.nvim - 🍊 Sweet Fennel integration for Neovim
nerdcommenter - Vim plugin for intensely nerdy commenting powers
fennel-language-server - Fennel language server protocol (LSP) support.
nvim-comment - A comment toggler for Neovim, written in Lua
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
tcomment_vim - An extensible & universal comment vim-plugin that also handles embedded filetypes
aniseed - Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
kommentary - Neovim commenting plugin, written in lua.
vim-tmux-navigator - Seamless navigation between tmux panes and vim splits
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vim-easy-align - :sunflower: A Vim alignment plugin
vim-lsp - async language server protocol plugin for vim and neovim