dotfiles
LuaSnip
dotfiles | LuaSnip | |
---|---|---|
7 | 77 | |
149 | 2,991 | |
- | - | |
8.0 | 9.2 | |
about 1 month ago | 7 days ago | |
Lua | Lua | |
MIT License | Apache License 2.0 |
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.
dotfiles
- looking for the best awesomewm config
-
Help with battery widget
BTW the widget I'm using is part of this github repo.
-
A little static web page to find gruvbox theme wallpapers
yeah i found what i believe to be the source through tineye, but it's always nice to be future-proof
-
pantran.nvim: asynchronous, interactive machine translation directly from your editor
Story time: I really love Neovim for programming, but one thing I love it even more for is scientific writing. Tools like texlab make this especially fun! But for a well-rounded experience, I need a few more things: (i) Grammar checking. For that I can recommend ltex, an LSP-server which adds LaTeX support to language tool. (ii) Thesaurus lookup. (Neo)vims integrated thesaurus format is a little bit limited. But thankfully 'thesaurusfunc' exists so I could easily write a small plugin to add support for openoffice.org mythes thesauri. (iii) Machine translation. Now we're finally getting to the topic of this post. I write most of my stuff in English but I'm not a native speaker, so machine translation is valuable for me. It can help me to overcome writers block to an extent, for example. There already exist a few plugins for that problem, like vim-translator or translate.nvim. But none of these support interactive modes, a slick UI, and, as far as I know, useful things like motions and counts. This is where my plugin pantran.nvim comes into place! The demo should speak for itself. In the end it was a lot more effort than I anticipated but I'm very pleased with the result. I hope this can be useful to others as well!
-
Neopret: use nvim as a standalone interpreter for scripts and interactive repl
Building an interpreter command was actually pretty easy and can be done in one line, but I also like my interpreters to provide an interactive repl and building that was an extremely frankenstein-ish hack job. Anyway, I figured others might also be interested in this so I uploaded it here. The script requires bash.
-
snipcomp.lua: LuaSnip companion plugin for omni completion
Using the LSP omnifunc with the builtin completion framework of Neovim (e.g. setting omnifunc to 'v:lua.vim.lsp.omnifunc') is sufficient for most of my needs. The only problem I had was that I also wanted to complete snippets. Luckily, besides omnifunc (triggered with i_CTRL-X_CTRL-O), a user-defined completion function can also be specified with completefunc (triggered with i_CTRL-X_CTRL-U). Because of this I wrote snipcomp.lua, which implements 'omnifunc' compatible LuaSnip completion. Now, I can complete snippets alongside LSP stuff and all other builtin completion sources.
-
[OC] Confload - Create dotfiles-manageable weechat configs with password manager integration
I hope this is the right place to post this.. Personally I really like weechat, but since the configuration files are not meant to be edited by humans and contain sensitive information it is really hard to share my weechat rice in a dotfiles repository. That's why I created confload, a plugin which reads a configuration file with weechat commands. There exist similar solutions like inwee or autoconf, but confload provides more advanced functionality by making use of a macro processor, which makes it possible to use stuff like comments and well.. macros. Confload provides a special macro to obtain secrets like passwords from a password manager to eliminate any sensitive information from the config file. Since I created this for my needs, right now only KeepassXC is supported, but the script can be easily adapted for other password managers. Maybe someone else also has a usecase for this!
LuaSnip
-
UltiSnips – Snippet Solution for Vim
If you're using Neovim, check out LuaSnip: https://github.com/L3MON4D3/LuaSnip
-
What is your preferred snippet plug-in?
I’ve been using LuaSnip and never put much thought into it. And this was mainly because of because it seemed like the default and had good LSP integration. The one downside is that creating custom snippets is not that ergonomic, but I don’t mind it if it’s the price to pay for speed.
-
HTML and Css snippets
You can use LuaSnip and load snippets from VSCode. The documentation is pretty complete, but here is my config in case you want another reference.
-
Enabling python's snippets.
I am trying to add snippets for python, i have LuaSnip and friendly-snippets installed, but for some reason it does not load the snippets. This is how i load the plugins:
-
[Help] Paste triggers in Select mode
There was a similar issue in LuaSnip repo. The culprit was a keymap in the config. Do you happen to have a similar keymap somewhere in your config?
-
My Haskell snippet collection for Neovim - with tree-sitter and LSP
I have decided to extract my Haskell snippets for LuaSnip into a plugin: haskell-snippets.nvim.
-
How do I use template files via Lua?
Not exactly what you're talking about but you could look into LuaSnip?
-
How to setup 'nvim-cmp' properly?
There are a few more resources for new users as well on the official repo, and you can find the implementation in Examples/snippets.lua
-
Does anyone know how to quickly create class, interface, record, ...etc in java with nvim
You mean snippets? If yes, you can try Luasnip and friendly-snippets with nvim-cmp and here's the setup guide. Hope it helps
-
Why does tab sometimes send me to a random position in my buffer?
I had the same issue recently. It was the case when I inserted a snippet but didn't fill out all the placeholders right away. This helped me. This is an autocommand that unlinks the unfinished snippet when you change the mode.
What are some alternatives?
awesome-hammerspoon - awesome configuration for Hammerspoon.
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
lain - Awesome WM complements
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
dotfiles - 夜 - Yoru | Aesthetic and Beautiful Awesome Environment :first_quarter_moon: [Moved to: https://github.com/rxyhn/yoru]
friendly-snippets - Set of preconfigured snippets for different languages.
vim-translator - :closed_book: Translating plugin for Vim/Neovim
nvim-snippy - Snippet plugin for Neovim written in Lua
dots - My dotfiles
snippets.nvim
texlab - An implementation of the Language Server Protocol for LaTeX
nvim-cmp - A completion plugin for neovim coded in Lua.