repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: jump2d configuration to my liking

6cff3dc326ffbf9d7b0811e074e76db962e74cd1

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (6)

neovim/init.lua

Modified
76 76 require 'bugabinga.patterns'
77 77 require 'bugabinga.pairs'
78 78 require 'bugabinga.terminal'
79 -require 'bugabinga.tree_view'
81 80 require 'bugabinga.incubator'

neovim/lua/bugabinga/file_explorer.lua

Modified
26 26 columns = { 'icon' },
27 27 win_options = {
28 + wrap = true,
28 29 cursorline = true,
29 30 -- show CWD in winbar. needs global function, see above
30 31 winbar = "%!v:lua.get_oil_winbar()",
59 60 border = vim.g.border_style,
61 62 view_options = {
62 - is_always_hidden = function(name) return name == '..' end,
63 63 show_hidden = true,
64 + natural_order = true,
65 + is_always_hidden = function(name) return name == '..' end,

neovim/lua/bugabinga/jump2d.lua

Modified
1 1 local puk = require 'std.puk'
2 2 puk.defer 'mini.jump2d' (function(jump2d)
3 - jump2d.setup {}
3 + jump2d.setup {
4 + -- Function producing jump spots (byte indexed) for a particular line.
5 + spotter = jump2d.builtin_opts.word_start.spotter,
6 + -- Characters used for labels of jump spots (in supplied order)
7 + labels = 'hjklgfdsabceimnoyrtuvwxzpq',
8 + -- Options for visual effects
9 + view = {
10 + -- How many steps ahead to show. Set to big number to show all steps.
11 + n_steps_ahead = 1,
12 + },
13 + -- Which lines are used for computing spots
14 + allowed_lines = {
15 + blank = false, -- Blank line (not sent to spotter even if `true`)
16 + fold = false, -- Start of fold (not sent to spotter even if `true`)
17 + },
18 + silent = true,
19 + }
4 20 end)

neovim/lua/bugabinga/tree_view.lua

Deleted
deleted file mode 100644
1 -local puk = require 'std.puk'
2 -local map = require 'std.map'
4 -puk.defer 'neo-tree' (function(neotree)
5 - vim.cmd.packadd 'plenary'
6 - vim.cmd.packadd 'nui'
7 - neotree.setup {
8 - close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab
9 - popup_border_style = vim.g.border_style,
10 - filesystem = {
11 - filtered_items = {
12 - visible = true,
13 - },
14 - follow_current_file = {
15 - enabled = true, -- This will find and focus the file in the active buffer every time
16 - -- the current file is changed while the tree is open.
17 - },
18 - group_empty_dirs = true, -- when true, empty folders will be grouped together
19 - hijack_netrw_behavior = "disabled", -- netrw disabled, opening a directory opens neo-tree
20 - -- in whatever position is specified in window.position
21 - -- "open_current", -- netrw disabled, opening a directory opens within the
22 - -- window like netrw would, regardless of window.position
23 - -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs
24 - use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes
25 - -- instead of relying on nvim autocmd events.
26 - },
27 - }
29 - map.normal {
30 - description = "Toggle tree view",
31 - keys = "<leader>e",
32 - category = "tree",
33 - command = '<cmd>Neotree reveal<cr>',
34 - }
35 -end)

neovim/puk.nu

Modified
140 140 spec: record # a plugin to install
142 142 let url_format = match $spec.source {
143 - github => { 'https://github.com/{repo}/archive/{commit}.tar.gz ' },
143 + github => { 'https://github.com/{repo}/archive/{commit}.tar.gz' },
144 144 codeberg => { 'https://codeberg.org/{repo}/archive/{commit}.tar.gz' },
145 145 srht => { 'https://git.sr.ht/{repo}/archive/{commit}.tar.gz' },
146 146 _ => { error make {

neovim/puk.plugins.nuon

Modified
20 20 github,
21 21 nvim-treesitter/nvim-treesitter,
22 22 main,
23 - "df8f45c4878ce9c1fc9e2a473f790e111a160a4f",
23 + "71bb6f603cd97674ac674e8c4e263ac0a1c50d6e",
25 25 nvim,
26 26 --headless,
60 60 github,
61 61 "Saghen/blink.cmp",
62 62 main,
63 - "07665c3caeba0acb9731a4d7135b92fb2e3e1a88",
63 + "5a71e8e01f44084de9f7351f1e2bef74cdc0c450",
65 65 cargo,
66 66 build,
280 280 github,
281 281 "folke/lazydev.nvim",
283 - "f59bd14a852ca43db38e3662395354cb2a9b13e0",
283 + "8620f82ee3f59ff2187647167b6b47387a13a018",
296 296 github,
297 297 "nvim-lua/plenary.nvim",
298 298 master,
299 - "d57df512bdade4c7a04a1bb6c89c8b54c5dce52a",
300 - null
301 - ],
302 - [
303 - neo-tree,
304 - github,
305 - "nvim-neo-tree/neo-tree.nvim",
306 - main,
307 - "d7266e467de1adbaf775cbd4bff9b68842e27386",
299 + "2d9b06177a975543726ce5c73fca176cedbffe9d",
312 304 github,
313 305 rafamadriz/friendly-snippets,
315 - "11d0fbd6fff6f4e394af95319deeaab4ef88ce97",
307 + "efff286dd74c22f731cdec26a70b46e5b203c619",