dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: profile startup on windows. slight improvement
wezterm: change keybinds for font sizes
5c56c5765cf2388ef5002a02e9c50ca5d84d17a7
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (17)
neovim/.editorconfig
Modifiedneovim/colors/nugu.lua
Modified 1 1 if vim.g.colors_name
== nil then 3 - local current_hour
= tonumber(
os.
date '%H' )
6 - if current_hour
>= 9 and current_hour
< 17 then 8 - vim.opt.background
= 'light' 11 - vim.opt.background
= 'dark' 2 + vim.opt.background
= 'dark' 15 5 vim.cmd
[[ highlight clear ]] 17 17 prequire
= require 'std.prequire' 22 -ok, loaded
= pcall(
require,
'bugabinga.options' )
24 - vim.print(
'error while loading options', loaded )
28 -ok, loaded
= pcall(
require,
'bugabinga.editorconfig' )
30 - vim.print(
'error while loading editorconfig extensions', loaded )
34 -ok, loaded
= pcall(
require,
'bugabinga.lazy' )
36 - vim.print(
'error while loading lazy', loaded )
40 -ok, loaded
= pcall(
require,
'bugabinga.diagnostic' )
42 - vim.print(
'error while loading diagnostic', loaded )
46 -ok, loaded
= pcall(
require,
'bugabinga.save_actions' )
48 - vim.print(
'error while loading save_actions', loaded )
52 -ok, loaded
= pcall(
require,
'bugabinga.mark' )
54 - vim.print(
'error while loading mark', loaded )
58 -ok, loaded
= pcall(
require,
'bugabinga.sessions' )
60 - vim.print(
'error while loading sessions', loaded )
64 -ok, loaded
= pcall(
require,
'bugabinga.terminal' )
66 - vim.print(
'error while loading terminal', loaded )
70 -ok, loaded
= pcall(
require,
'bugabinga.lsp' )
72 - vim.print(
'error while loading lsp', loaded )
19 +prequire
'bugabinga.options' 20 +prequire
'bugabinga.lazy' 21 +prequire
'bugabinga.editorconfig' 22 +prequire
'bugabinga.diagnostic' 23 +prequire
'bugabinga.save_actions' 25 +prequire
'bugabinga.sessions' 26 +prequire
'bugabinga.terminal' 27 +prequire
'bugabinga.lsp' neovim/lua/bugabinga/editorconfig.lua
Modified26 -expose_option(
'spell', tobool )
27 -expose_option(
'number', tobool )
28 -expose_option(
'cursorline', tobool )
29 -expose_option(
'virtualedit',
tostring )
26 +expose_option(
'spell', tobool )
27 +expose_option(
'number', tobool )
28 +expose_option(
'relativenumber', tobool )
29 +expose_option(
'cursorline', tobool )
30 +expose_option(
'virtualedit',
tostring )
31 32 editorconfig.properties.
diagnostic = function ( bufnr, value )
32 33 local option
= tobool( value )
34 35 vim.diagnostic.enable(
true, {
bufnr = bufnr, } )
36 - vim.diagnostic.enable(
false, {
bufnr = bufnr } )
37 + vim.diagnostic.enable(
false, {
bufnr = bufnr, } )
neovim/lua/bugabinga/lazy.lua
Modified 20 20 local icon
= require 'std.icon' 22 22 local overrides
= require 'std.localrc' (
'.lazy.specs.lua',
'table' )
25 -vim.g.FILE_LOADED_EVENTS
= {
'BufRead',
'BufNew',
'SessionLoadPost', }
28 25 spec = { {
import =
'bugabinga.plugins', }, overrides, },
94 91 'spellfile_plugin',
neovim/lua/bugabinga/lsp/clients/java.lua
Modified 1 1 local project
= require 'std.project' 2 2 local auto
= require 'std.auto' 4 -local find_jdks = function ()
5 - local host
= vim.uv.os_gethostname()
16 - if host
== 'velma' then 17 - jdk11.path
= '/usr/lib64/jvm/java-11-openjdk-11' 18 - jdk17.path
= '/usr/lib64/jvm/java-17-openjdk-17' 19 - jdk21.path
= '/usr/lib64/jvm/java-21-openjdk-21' 20 - elseif host
== 'fedora' then 21 - jdk11.path
= '/usr/lib/jvm/java-11-openjdk' 22 - jdk17.path
= '/usr/lib/jvm/java-17-openjdk' 23 - jdk21.path
= '/usr/lib/jvm/java-21-openjdk' 24 - elseif host
== 'NB-00718' then 25 - jdk11.path
= 'C:/Users/okr/scoop/apps/openjdk11/current' 26 - jdk17.path
= 'C:/Users/okr/scoop/apps/openjdk17/current' 27 - jdk21.path
= 'C:/Users/okr/scoop/apps/openjdk21/current' 29 - vim.notify
'missing jdk paths in java settings for lsp' 32 - return { jdk11, jdk17, jdk21, }
35 4 local java_settings
= {
36 5 signatureHelp = {
enabled =
true, },
38 - autobuild = {
enabeld =
true, },
7 + autobuild = {
enabled =
true, },
39 8 signatureHelp = {
enabled =
true, },
40 9 saveActions = {
origanizeImports =
true, },
41 10 organizeImports = {
55 24 updateBuildConfiguration =
'interactive',
56 - runtimes = find_jdks(),
58 26 maven
= {
downloadSources =
true, },
59 27 implementationsCodeLens
= {
enabled =
true, },
neovim/lua/bugabinga/options/ui.lua
Modified 38 -vim.cmd
[[ language mes en_US.utf8 ]] 38 +vim.cmd
[[ language en_US.utf8 ]] 41 41 vim.opt.showcmd
= false neovim/lua/bugabinga/plugins/colorizer.lua
Modified 3 3 'JosefLitos/colorizer.nvim',
4 - event = vim.g.FILE_LOADED_EVENTS,
6 6 filetypes = {
'*', },
7 7 user_default_options = {
neovim/lua/bugabinga/plugins/indent_blankline.lua
Modified 4 4 local icon
= require 'std.icon' 7 7 'lukas-reineke/indent-blankline.nvim',
10 - event = vim.g.FILE_LOADED_EVENTS,
neovim/lua/bugabinga/plugins/oil.lua
Modified 5 5 description
= 'Open parent directory in buffer.',
9 8 command = function ()
require 'oil'.open()
end,
neovim/lua/bugabinga/plugins/telescope.lua
Modified119 119 local actions
= require 'telescope.actions' 120 120 local themes
= require 'telescope.themes' 122 - local ivy
= themes.get_ivy {
hidden =
true,
layout_config = {
preview_width =
0.69, }, }
122 + local ivy
= themes.get_ivy {
layout_config = {
preview_width =
0.23, }, }
124 124 telescope.setup {
127 126 prompt_prefix = icon.telescope
.. ' ',
128 127 selection_caret = icon.arrow_right
.. ' ',
129 - path_display = {
'shorten'},
130 - dynamic_preview_title =
true,
131 128 file_ignore_patterns = {
neovim/lua/bugabinga/plugins/todo-comments.lua
Modified3 3 'folke/todo-comments.nvim',
5 5 dependencies = {
'nvim-lua/plenary.nvim', },
6 - event = vim.g.FILE_LOADED_EVENTS,
neovim/lua/bugabinga/plugins/treesitter.lua
Modified 5 5 {
name =
'TreeSitter CLI',
name_of_executable =
'tree-sitter', }
6 6 {
name_of_executable =
'tar', }
8 -local events
= {
'VeryLazy', }
9 -table.
insert( events, vim.g.FILE_LOADED_EVENTS )
12 9 'nvim-treesitter/nvim-treesitter',
16 14 init =
function ( plugin )
23 21 require 'nvim-treesitter.query_predicates' 25 23 build = function ()
26 - require 'nvim-treesitter.install'.update {
with_sync =
false, }
24 + require 'nvim-treesitter.install'.update {
with_sync =
true, }
29 - 'nvim-treesitter/playground',
30 28 'nvim-treesitter/nvim-treesitter-textobjects',
31 29 'windwp/nvim-ts-autotag',
32 30 'RRethy/nvim-treesitter-endwise',
33 31 'nvim-treesitter/nvim-treesitter-context',
34 - 'nushell/tree-sitter-nu',
36 33 config = function ()
37 34 local install
= require 'nvim-treesitter.install' 40 37 install.prefer_git
= false 41 38 install.compilers
= {
'zig',
'clang',
'gcc',
'cl',
'cc', vim.fn.getenv
'CC', }
44 40 local should_disable = function ( _, bufnr )
45 41 local max_filesize
= 5 * 1024 * 1024 46 42 local ok, stats
= pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr
or 0 ) )
55 51 sync_install =
false,
56 - ensure_installed = {
96 92 ignore_install = {
'oil', },
98 - auto_install =
true,
94 + auto_install =
false,
100 96 autotag = {
enable =
true,
disable = should_disable, },
101 97 endwise = {
enable =
true,
disable = should_disable, },
120 - indent
= {
enable =
true, },
116 + indent
= {
enable =
true,
disable = should_disable, },
124 - disable = should_disable,
126 - persist_queries =
false,
128 - toggle_query_editor =
'o',
129 - toggle_hl_groups =
'i',
130 - toggle_injected_languages =
't',
131 - toggle_anonymous_nodes =
'a',
132 - toggle_language_display =
'I',
133 - focus_language =
'f',
134 - unfocus_language =
'F',
136 - goto_node =
'<cr>',
174 170 include_surroundig_whitespace
= true,
179 - disable = should_disable,
181 - [
'<leader>rn'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with next', },
184 - [
'<leader>rp'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with previous', },
190 - disable = should_disable,
191 - border = vim.g.border_style,
192 - floating_preview_opts = {},
193 - peek_definition_code = {
194 - [
'<leader>lp'] = {
query =
'@function.outer',
desc =
'Peek definition of outer function.', },
195 - [
'<leader>lP'] = {
query =
'@class.outer',
desc =
'Peek definition of outer class.', },
201 175 disable = should_disable,
202 176 set_jumps =
true,
204 178 [
']f'] = {
query =
'@call.outer',
desc =
'Goto next function call', },
205 - [
']m'] = {
query =
'@fucntion.outer',
desc =
'Goto next function definition', },
179 + [
']m'] = {
query =
'@function.outer',
desc =
'Goto next function definition', },
206 180 [
']c'] = {
query =
'@class.outer',
desc =
'Goto next class', },
207 181 [
']o'] = {
query =
'@conditional.outer',
desc =
'Goto next conditional', },
208 182 [
']p'] = {
query =
'@parameter.outer',
desc =
'Goto next parameter', },
220 194 require 'treesitter-context'.setup {
196 + disable = should_disable,
223 198 min_window_height =
0,
224 199 line_numbers =
true,
225 200 multiline_threshold =
20,
226 201 trim_scope =
'outer',
neovim/lua/bugabinga/plugins/virt-column.lua
Modified 3 3 local ignored
= require 'std.ignored' 6 6 'lukas-reineke/virt-column.nvim',
8 - event = vim.g.FILE_LOADED_EVENTS,
10 10 char = {
'┆',
'╎',
'│', },
neovim/spell/nerd.utf-8.add
Modifiedneovim/spell/nerd.utf-8.add.spl
ModifiedPrevious version contains binary or non-UTF-8 data.
Current version contains binary or non-UTF-8 data.
wezterm/bugabinga/key_binds.lua
Modified 20 20 {
key =
'Escape',
action =
'PopKeyTable' },
22 22 [font_size_mode]
= {
23 - {
key =
'+',
action = wez.action.IncreaseFontSize },
24 - {
key =
'-',
action = wez.action.DecreaseFontSize },
23 + {
key =
'j',
action = wez.action.DecreaseFontSize },
24 + {
key =
'k',
action = wez.action.IncreaseFontSize },
25 25 {
key =
'=',
action = wez.action.ResetFontSize },
27 27 {
key =
'Escape',
action =
'PopKeyTable' },