diff options
author | frosty <passedgoadngot200@disroot.org> | 2025-09-16 18:18:10 -0400 |
---|---|---|
committer | frosty <passedgoadngot200@disroot.org> | 2025-09-16 18:18:10 -0400 |
commit | 01a2f10cfa100996e18e52f245f0be2baf545a00 (patch) | |
tree | 3bbadf32a6511cb1d26e98f3496e1331f065b91c /content | |
download | www-01a2f10cfa100996e18e52f245f0be2baf545a00.tar.gz www-01a2f10cfa100996e18e52f245f0be2baf545a00.zip |
initial commit
Diffstat (limited to 'content')
-rw-r--r-- | content/about.md | 17 | ||||
-rw-r--r-- | content/blog/status-update-may-2025.md | 14 | ||||
-rw-r--r-- | content/blog/vim-without-plugins.md | 90 | ||||
-rw-r--r-- | content/etc.md | 9 |
4 files changed, 130 insertions, 0 deletions
diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..9a953f7 --- /dev/null +++ b/content/about.md @@ -0,0 +1,17 @@ +--- +title: "About" +lastmod: "2025-09-16" +--- + +Hi there. I'm a hobbyist network engineer, systems administrator, computer programmer, and photographer. Most of my work is offline, but I'm slowly working on writing posts about what I've done. + +## Contact + +* XMPP: `frosty` [aatt] `orcanet` [ddoott] `sh` + * Please use OMEMO and encrypt for [this list](/omemo-fingerprints.txt) of fingerprints. + +## Me Elsewhere + +* Git repositories: [Personal](https://git.mending.trade/), [sourcehut](https://git.sr.ht/~auroras) +* [linkhut](https://ln.ht/~auroras) +* [Gentoo wiki](https://wiki.gentoo.org/wiki/User:Auroras) diff --git a/content/blog/status-update-may-2025.md b/content/blog/status-update-may-2025.md new file mode 100644 index 0000000..139e0e9 --- /dev/null +++ b/content/blog/status-update-may-2025.md @@ -0,0 +1,14 @@ +--- +title: "Status update, May 2025" +date: "2025-06-04" +--- + +Welcome to my first status update post on the website. I'm not used to this format, so I apologize if it's all over the place. + +As of the beginning of the month, I've started taking my home server projects more seriously. I now rent out a small VPS, which has been a nice addition. Nothing else of interest to add. + +Also, I started doing basic telephony in my home. I have 2 Cisco 7965 IP phones that are connected to an Asterisk PBX, which has been patched with [USECALLMANAGER][usecallmanager] to allow the Cisco phones to have more features over SIP. It's been a really neat thing to work on so far. + +And that's about it for now. Feel free to email with questions, and I'll see you next time! + +[usecallmanager]: https://usecallmanager.nz/documentation-overview.html diff --git a/content/blog/vim-without-plugins.md b/content/blog/vim-without-plugins.md new file mode 100644 index 0000000..0fadb18 --- /dev/null +++ b/content/blog/vim-without-plugins.md @@ -0,0 +1,90 @@ +--- +title: "(Neo)vim is usable without plugins" +date: "2025-06-17" +--- + +Vim and Neovim are extremely powerful editors, but despite having lots of features built-in, many folk reach for third-party plugins quite easily. Here are a few common features that may be found of use which are built in to the editor. + +## Completion (Vim) + +Completion functions are all prefixed with `C-x` in insert mode. Take this snippet from the `ins-completion` help section for reference: + +```txt {tabWidth=0} +In Insert and Replace mode, there are several commands to complete part of a +keyword or line that has been typed. This is useful if you are using +complicated keywords (e.g., function names with capitals and underscores). + +Completion can be done for: + +1. Whole lines |i_CTRL-X_CTRL-L| +2. keywords in the current file |i_CTRL-X_CTRL-N| +3. keywords in 'dictionary' |i_CTRL-X_CTRL-K| +4. keywords in 'thesaurus', thesaurus-style |i_CTRL-X_CTRL-T| +5. keywords in the current and included files |i_CTRL-X_CTRL-I| +6. tags |i_CTRL-X_CTRL-]| +7. file names |i_CTRL-X_CTRL-F| +8. definitions or macros |i_CTRL-X_CTRL-D| +9. Vim command-line |i_CTRL-X_CTRL-V| +10. User defined completion |i_CTRL-X_CTRL-U| +11. omni completion |i_CTRL-X_CTRL-O| +12. Spelling suggestions |i_CTRL-X_s| +13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P| +``` + +Highlights are omni completion - often tied to LSP, spelling suggestions, and file names. + +## LSP (Neovim) + +This is easier to set up than ever thanks to Neovim v0.11 adding `vim.lsp.Config`. + +For starters, a configuration file for each language server must be created. Below is an example of one for `gopls`: + +```lua +return { + cmd = { "gopls" }, + root_markers = { ".git", "go.mod", "go.work" }, + filetypes = { "go", "gomod", "gotmpl", "gowork" }, +} +``` + +Then, just enable the server: + +```vim +if has('nvim-0.11') + if executable('gopls') + lua vim.lsp.enable('gopls') + endif +endif +``` + +See the [Neovim docs](https://neovim.io/doc/user/lsp.html#vim.lsp.Config) for more information. + +## Fuzzy Finding (Vim) + +This is self-explanatory. Vim has recursive search support, along with wildcards. + +```vim +" Include subdirectories in search path +set path+=** + +" Add exclusions from recursive searches +set wildignore+=**/.git/**,**/build/**,**/node_modules/** + +" Bind a key for searching +nnoremap <C-p> :e **/* +``` + +## Tree-sitter (Neovim) + +Tree-sitter parsers must be installed with an external package manager, ideally the one your operating system already uses. + +Other than that, Neovim should start Tree-sitter with just the below code: + +```vim +if has('nvim') + augroup StartTreesitter + autocmd! + autocmd FileType * lua pcall(vim.treesitter.start) + augroup END +endif +``` diff --git a/content/etc.md b/content/etc.md new file mode 100644 index 0000000..0d34724 --- /dev/null +++ b/content/etc.md @@ -0,0 +1,9 @@ +--- +title: "Links, information, et cetera" +--- + +This is my general dump of things I find interest in. + +## Assistance in this site's creation + +* [Hugo](https://gohugo.io/) |