Select the types of activity you want to include in your feed.
Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins.
git.anhgelus.world/anhgelus/dotfiles
···11+local colorscheme = 'monokai_pro'
22+33+local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
44+if not is_ok then
55+ vim.notify('colorscheme ' .. colorscheme .. ' not found!')
66+ return
77+end
+22
config/nvim/lua/options.lua
···11+vim.opt.completeopt = {'menu', 'menuone', 'noselect'}
22+33+vim.opt.tabstop = 4 -- number of visual spaces per TAB
44+vim.opt.softtabstop = 4 -- number of spacesin tab when editing
55+vim.opt.shiftwidth = 4 -- insert 4 spaces on a tab
66+vim.opt.expandtab = true -- tabs are spaces, mainly because of python
77+88+vim.opt.number = true -- show absolute number
99+vim.opt.relativenumber = true -- add numbers to each line on the left side
1010+vim.opt.cursorline = true -- highlight cursor line underneath the cursor horizontally
1111+vim.opt.splitbelow = true -- open new vertical split bottom
1212+vim.opt.splitright = true -- open new horizontal splits right
1313+1414+vim.opt.incsearch = true -- search as characters are entered
1515+vim.opt.ignorecase = true -- ignore case in searches by default
1616+vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
1717+1818+vim.filetype.add({
1919+ extension = {
2020+ heex = 'eelixir'
2121+ }
2222+})
+18
config/nvim/lua/plugin.lua
···11+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
22+if not (vim.uv or vim.loop).fs_stat(lazypath) then
33+ vim.fn.system({
44+ "git",
55+ "clone",
66+ "--filter=blob:none",
77+ "https://github.com/folke/lazy.nvim.git",
88+ "--branch=stable", -- latest stable release
99+ lazypath,
1010+ })
1111+end
1212+vim.opt.rtp:prepend(lazypath)
1313+1414+-- This is also a good place to setup other settings (vim.opt)
1515+vim.g.mapleader = " "
1616+vim.g.maplocalleader = "\\"
1717+1818+require("lazy").setup("plugins")
+84
config/nvim/lua/plugins/blink.lua
···11+return {
22+ {
33+ "saghen/blink.cmp",
44+ -- optional: provides snippets for the snippet source
55+ dependencies = { "rafamadriz/friendly-snippets" },
66+77+ -- Use a release tag to download pre-built binaries
88+ version = "*",
99+ -- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
1010+ -- build = 'cargo build --release',
1111+ -- If you use nix, you can build from source using the latest nightly rust with:
1212+ -- build = 'nix run .#build-plugin',
1313+1414+ opts = {
1515+ -- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
1616+ -- 'super-tab' for mappings similar to VSCode (tab to accept)
1717+ -- 'enter' for enter to accept
1818+ -- 'none' for no mappings
1919+ --
2020+ -- All presets have the following mappings:
2121+ -- C-space: Open menu or open docs if already open
2222+ -- C-n/C-p or Up/Down: Select next/previous item
2323+ -- C-e: Hide menu
2424+ -- C-k: Toggle signature help (if signature.enabled = true)
2525+ --
2626+ -- See :h blink-cmp-config-keymap for defining your own keymap
2727+ keymap = {
2828+ -- Each keymap may be a list of commands and/or functions
2929+ preset = "enter",
3030+ -- Select completions
3131+ ["<Up>"] = { "select_prev", "fallback" },
3232+ ["<Down>"] = { "select_next", "fallback" },
3333+ ["<Tab>"] = { "select_next", "fallback" },
3434+ ["<S-Tab>"] = { "select_prev", "fallback" },
3535+ -- Scroll documentation
3636+ ["<C-b>"] = { "scroll_documentation_up", "fallback" },
3737+ ["<C-f>"] = { "scroll_documentation_down", "fallback" },
3838+ -- Show/hide signature
3939+ ["<C-k>"] = { "show_signature", "hide_signature", "fallback" },
4040+ },
4141+4242+ appearance = {
4343+ -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
4444+ -- Adjusts spacing to ensure icons are aligned
4545+ nerd_font_variant = "mono",
4646+ },
4747+4848+ sources = {
4949+ -- `lsp`, `buffer`, `snippets`, `path`, and `omni` are built-in
5050+ -- so you don't need to define them in `sources.providers`
5151+ default = { "lsp", "path", "snippets", "buffer" },
5252+5353+ -- Sources are configured via the sources.providers table
5454+ },
5555+5656+ -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
5757+ -- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
5858+ -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
5959+ --
6060+ -- See the fuzzy documentation for more information
6161+ fuzzy = { implementation = "prefer_rust_with_warning" },
6262+ completion = {
6363+ -- The keyword should only match against the text before
6464+ keyword = { range = "prefix" },
6565+ menu = {
6666+ -- Use treesitter to highlight the label text for the given list of sources
6767+ draw = {
6868+ treesitter = { "lsp" },
6969+ },
7070+ },
7171+ -- Show completions after typing a trigger character, defined by the source
7272+ trigger = { show_on_trigger_character = true },
7373+ documentation = {
7474+ -- Show documentation automatically
7575+ auto_show = true,
7676+ },
7777+ },
7878+7979+ -- Signature help when tying
8080+ signature = { enabled = true },
8181+ },
8282+ opts_extend = { "sources.default" },
8383+ }
8484+}