dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search neovim, nushell: maintanence update to newer versions
df581cf616747379b83c55ea7c4eee537fb76e16
Oliver Krylow <o.krylow@isp-insoft.de > · 23 Nov 2022
unsigned
Browse files Compare with HEAD
Changed files (12) neovim/lua/bugabinga/colorizer.lua Modified 1 1 local want
= require 'bugabinga.std.want' 2 2 want {
'colorizer' }(
function (colorizer)
3 - colorizer.setup({
'*' }, {
12 - mode =
'virtualtext' ,
5 + user_default_options = {
16 + mode =
"background" ,
21 + sass = {
enable =
false ,
parsers = { css }, },
neovim/lua/bugabinga/colortheme.lua Modified 1 1 local want
= require 'bugabinga.std.want' 2 2 want {
'boo-colorscheme' } (
function (boo)
3 + local themes
= {
'sunset_cloud' ,
'radioactive_waste' ,
'forest_stream' ,
'crimson_moonlight' }
4 + local random_theme
= themes[(
math .
floor (
math .
random ()
* # themes))]
7 + theme = random_theme,
4 9 vim.api.nvim_set_hl(
0 ,
'LspReferenceText' , {})
5 10 vim.api.nvim_set_hl(
0 ,
'LspReferenceRead' , {
neovim/lua/bugabinga/lsp.lua Modified 12 12 'nvim-lsp-installer' ,
17 - } (
function (zero, null_ls, installer, luadev, rust, navic, lsp_status)
17 + } (
function (zero, null_ls, installer, neodev, rust, navic, lsp_status)
18 18 installer.settings {
50 50 zero.build_options(
'jdtls' , {})
54 54 lspconfig = zero.defaults.nvim_workspace(),
78 78 formatting.clang_format,
79 - formatting.codespell,
81 80 formatting.protolint,
82 81 formatting.shellharden,
88 87 diagnostics.actionlint.with(diagnostics_on_save),
89 88 diagnostics.checkmake.with(diagnostics_on_save),
90 - diagnostics.codespell.with(diagnostics_on_save),
91 - diagnostics.editorconfig_checker.with(diagnostics_on_save).with {
command =
'editorconfig-checker' },
92 89 diagnostics.gitlint.with(diagnostics_on_save),
93 90 diagnostics.protoc_gen_lint.with(diagnostics_on_save),
94 91 diagnostics.protolint.with(diagnostics_on_save),
114 111 local function setup_keybinds_and_actions (client, buffer_number)
116 - local capabilities
= client.resolved_capabilities
113 + local capabilities
= client.server_capabilities
117 114 if capabilities.document_formatting
then 119 116 description =
'Format buffer using LSP' ,
neovim/lua/bugabinga/options/ui.lua Modified 72 72 vim.opt.guicursor
= 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50' 75 - vim.opt.guifont
= 'BlexMono Nerd Font:h11:antialias=true' 75 + vim.opt.guifont
= 'BlexMono NF:h16:antialias=true' 78 78 if vim.g.neovide
then neovim/lua/bugabinga/plugins/init.lua Modified 72 - 'lasse16/nvim-colorizer.lua' ,
70 + 'NvChad/nvim-colorizer.lua' ,
74 72 'numToStr/Comment.nvim' ,
neovim/lua/bugabinga/registers.lua Modified 4 - vim.g.registers_delay
= 0 5 - vim.g.registers_register_key_sleep
= 0 6 - vim.g.registers_show_empty_registers
= 1 7 - vim.g.registers_trim_whitespace
= 1 8 - vim.g.registers_hide_only_whitespace
= 1 9 - vim.g.registers_window_border
= 'rounded' 10 - vim.g.registers_window_min_height
= 3 11 - vim.g.registers_window_max_width
= 100 12 - vim.g.registers_normal_mode
= 1 13 - vim.g.registers_visual_mode
= 1 14 - vim.g.registers_insert_mode
= 1 1 + local want
= require 'bugabinga.std.want' 2 + want{
'registers' } (
function (registers)
6 + show =
"*+\"-/_=#%.0123456789abcdefghijklmnopqrstuvwxyz:" ,
10 + register_user_command =
true ,
12 + system_clipboard =
true ,
14 + trim_whitespace =
true ,
16 + hide_only_whitespace =
true ,
18 + show_register_types =
true ,
22 + normal = registers.show_window({
mode =
"motion" }),
24 + visual = registers.show_window({
mode =
"motion" }),
26 + insert = registers.show_window({
mode =
"insert" }),
29 + registers = registers.apply_register({
delay =
0.1 }),
31 + return_key = registers.apply_register(),
33 + escape = registers.close_window(),
36 + ctrl_n = registers.move_cursor_down(),
38 + ctrl_p = registers.move_cursor_up(),
40 + ctrl_j = registers.move_cursor_down(),
42 + ctrl_k = registers.move_cursor_up(),
47 + on_register_highlighted = registers.preview_highlighted_register({
if_mode = {
"insert" ,
"paste" } }),
58 + register_type_charwise =
"ᶜ" ,
60 + register_type_linewise =
"ˡ" ,
62 + register_type_blockwise =
"ᵇ" ,
69 + highlight_cursorline =
true ,
78 + cursorline =
"Visual" ,
79 + selection =
"Constant" ,
80 + default =
"Function" ,
81 + unnamed =
"Statement" ,
83 + expression =
"Exception" ,
84 + black_hole =
"Error" ,
85 + alternate_buffer =
"Operator" ,
86 + last_search =
"Tag" ,
neovim/lua/bugabinga/search.lua Modified 3 3 local map
= require 'bugabinga.std.keymap' 4 4 local want
= require 'bugabinga.std.want' 6 6 want {
'hlslens' } (
function (lens)
9 11 vim.api.nvim_set_hl(
0 ,
'HlSearchLens' , {
link =
'Search' })
neovim/lua/bugabinga/treesitter.lua Modified 11 11 } (
function (install, configs, parsers, hlargs, neogen)
12 12 install.compilers
= {
'zig' ,
'clang' ,
'gcc' ,
'cl' ,
'cc' , vim.fn.getenv
'CC' }
13 + install.prefer_git
= true 17 17 ensure_installed =
'all' ,
19 - sync_install =
true ,
21 + sync_install =
false ,
21 23 auto_install =
true ,
nushell/config.nu Modified 269 269 event: { send: menu name: commands_with_description }
nushell/modules/prompt.nu Modified 12 - |
where active == true
14 - |
each { | path | zoxide add --
$path }
21 - export def -env zoxide-jump [...rest:string] {
22 - let span = (metadata
$rest ).span
24 - let pwd = (
$env.PWD | path expand)
25 - let z_jump = (
do --ignore-errors { zoxide query --exclude
$pwd --
$rest } )
27 - if (
$z_jump | is-empty) {
29 - msg:
"Zoxide could not find any match for the given query." ,
31 - text:
"no matches for this query" ,
39 - cd (
$z_jump | str trim --right --char (char newline) )
42 - export alias z = zoxide-jump
89 46 def create_left_prompt [] {
134 - export def -env PROMPT_COMMAND [] { create_left_prompt }
135 - export def -env PROMPT_COMMAND_RIGHT [] { create_right_prompt }
91 + let -env PROMPT_COMMAND = { create_left_prompt }
92 + let -env PROMPT_COMMAND_RIGHT = { create_right_prompt }
139 - export def -env PROMPT_INDICATOR [] { $
"(ansi purple) (char prompt) (ansi reset)" }
140 - export def -env PROMPT_INDICATOR_VI_INSERT [] { $
"(ansi purple) (char pipe) (ansi reset)" }
141 - export def -env PROMPT_INDICATOR_VI_NORMAL [] { $
"(ansi purple) (char prompt) (ansi reset)" }
142 - export def -env PROMPT_MULTILINE_INDICATOR [] { $
"(ansi purple) (char prompt)(char prompt) (ansi reset)" }
96 + let -env PROMPT_INDICATOR = $
"(ansi purple) (char prompt) (ansi reset)" 97 + let -env PROMPT_INDICATOR_VI_INSERT = $
"(ansi purple) (char pipe) (ansi reset)" 98 + let -env PROMPT_INDICATOR_VI_NORMAL = $
"(ansi purple) (char prompt) (ansi reset)" 99 + let -env PROMPT_MULTILINE_INDICATOR = $
"(ansi purple) (char prompt)(char prompt) (ansi reset)" nushell/modules/zoxide.nu Added new file mode 100644 10 + let -env config = (
$env | default {} config).config
11 + let -env config = (
$env.config | default {} hooks)
12 + let -env config = (
$env.config | update hooks (
$env.config.hooks | default [] pre_prompt))
13 + let -env config = (
$env.config | update hooks.pre_prompt (
$env.config.hooks.pre_prompt | append {
14 + zoxide add --
$env.PWD 24 + export def -env __zoxide_z [...rest:string] {
26 + let arg0 = (
$rest | append
'~' ).
0 27 + let path =
if ((
$rest | length) <=
1 ) && (
$arg0 ==
'-' || (
$arg0 | path expand | path type) == dir) {
30 + (zoxide query --exclude
$env.PWD --
$rest | str trim -r -c
"\n" )
36 + export def -env __zoxide_zi [...rest:string] {
37 + cd $
'(zoxide query -i -- $rest | str trim -r -c "\n")' 45 + export alias z = __zoxide_z
46 + export alias zi = __zoxide_zi
tools/cargo-tools.nu Modified 46 46 [
"selene" "selene" [
"--no-default-features" ] ]
47 47 [
"stylua" "stylua" [
"--features" "lua52" ] ]
48 48 [
"taplo-cli" "taplo" [] ]
49 50 [
"coreutils" "coreutils" (coreutils-features) ]