260615.3 · 98792b1dab553d0ac9a206e40c10643d28cc57f5
*: a near complete overhaul of some fundamental components
Particularly, the `video` script and how Wingo boots. We consolidate much here and avoid separate init scripts for each machine. They were a huge pain to maintain and frequently got out of sync from one another.
We do still have some case analysis, which is annoying. But a foolish consistency is the hobgoblin of little minds.
reading declarations
Changes to .config/nvim/. All files
@@ -204,7 +204,7 @@ vim.api.nvim_create_autocmd('FileType', { end, }) vim.api.nvim_create_autocmd('FileType', {- pattern = 'sh',+ pattern = {'sh', 'bash', 'zsh'}, callback = function() spacing.space2() vim.b.comment = '#'@@ -278,10 +278,3 @@ vim.api.nvim_create_autocmd('FileType', { -- inoremap # X# end, })-vim.api.nvim_create_autocmd('FileType', {- pattern = 'zsh',- callback = function()- spacing.space4()- vim.b.comment = '#'- end,-})
@@ -2,6 +2,11 @@ -- https://neovim.io/doc/user/lua.html#vim.hl -- https://neovim.io/doc/user/undo.html#undo-persistence +-- Enable project local configuration. Just drop in a `.nvim.lua` in a+-- repository root directory.+vim.o.exrc = true+vim.o.secure = true+ -- Show line numbers. vim.opt.number = true @@ -18,9 +23,29 @@ spacing.space2() -- the current one isn't saved. vim.opt.hidden = true +-- This makes neovim use OSC 52 escapes for clipboard integration. The nice+-- benefit here is that it doesn't require X11 forwarding. Yay!+-- vim.g.clipboard = 'osc52'++vim.g.clipboard = {+ name = 'OSC52 copy, xcp paste',++ copy = {+ ['+'] = require('vim.ui.clipboard.osc52').copy('+'),+ ['*'] = require('vim.ui.clipboard.osc52').copy('*'),+ },++ paste = {+ ['+'] = { 'xcp', '--output' },+ ['*'] = { 'xcp', '--output' },+ },++ cache_enabled = 0,+}+ -- This causes neovim to use the system clipboard for all yanking operations, -- instead of needing to use the '+' or '*' registers explicitly.-vim.opt.clipboard:append('unnamedplus')+vim.opt.clipboard = 'unnamedplus' -- Always disable code folding. vim.opt.foldenable = false@@ -78,21 +103,3 @@ vim.opt.completeopt = 'noselect' -- [1]: https://old.reddit.com/r/neovim/comments/f0qx2y/automatically_reload_file_if_contents_changed/ -- [2]: https://github.com/neovim/neovim/issues/1936 vim.opt.autoread = true---- Make copy/paste from the unnamed register work well.--- I don't remember exactly why I need this.-if vim.fn.executable('xsel') == 1 then- -- Adapted from runtime/autoload/provider/clipboard.vim.- vim.g.clipboard = {- name = 'myxsel',- copy = {- ['+'] = 'xsel --nodetach --input --clipboard',- ['*'] = 'xsel --nodetach --input --primary',- },- paste = {- ['+'] = 'xsel --output --clipboard',- ['*'] = 'xsel --output --primary',- },- cache_enabled = 1,- }-end