Skip to content

Instantly share code, notes, and snippets.

@milanglacier
milanglacier / config.lua
Created January 21, 2025 16:40
Minuet Config to work with ollama
require('minuet').setup {
virtualtext = {
auto_trigger_ft = {},
keymap = {
-- accept whole completion
accept = '<A-A>',
-- accept one line
accept_line = '<A-a>',
-- accept n lines (prompts for number)
accept_n_lines = '<A-z>',
@milanglacier
milanglacier / polybar-config-minimal-music-info-with-playerctl.md
Last active March 10, 2025 03:03
Minimal Polybar Setup with Music Display and Playerctl Controls

Polybar appearance:

Screenshot 2024-11-12 at 23 56 42

In your polybar config, the relevant config part is:

~/.config/polybar/config.ini

@milanglacier
milanglacier / ctags-config-to-parse-dataframe-columns.conf
Last active November 13, 2024 05:06
Customized Ctags syntax for parsing R and Pandas data frame columns
# put the following under ~/.ctags.d/options.ctags, don't include this line into ~/.ctags.d/options.ctags
--langdef=Rext{base=R}
--kinddef-Rext=v,variable,a variable with named attr
--kinddef-Rext=n,nameattr,the named attributes of a variable
--_roledef-Rext.v=nondefinition,this is not a definition
--regex-Rext=/([[:alnum:]_.]+)\$[[:alnum:]_.]+\s*(<-|=)[^=]/\1/v/{scope=push}{_role=nondefinition}
--regex-Rext=/[[:alnum:]_.]+\$([[:alnum:]_.]+)\s*(<-|=)[^=]/\1/n/{scope=ref}
--regex-Rext=/[[:alnum:]_.]+\$[[:alnum:]_.]+\s*(<-|=)[^=].*///{scope=pop}{placeholder}