dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search Review guide neovim: removed mason and neorg
wezterm: random font on fedora
a32fc4ce51fb741f83b3161468f79b23d03ad479
Oliver Jan Krylow <oliver@bugabinga.net > · 3 May 2024
unsigned
Browse files Compare with HEAD
Changed files (13) cargo/config.toml Modified 3 - rustc-wrapper =
"sccache" 5 3 rustflags = [
"-C" ,
"target-cpu=native" ]
new file mode 100644 5 + ~/.config/git/.gitconfig.include
20 + ~/.local/bin/git-info
29 + ~/.config/nushell/config.nu
32 + ~/.config/nushell/env.nu
35 + ~/.config/nushell/modules
38 + ~/.config/nushell/plugin.nu
40 + topgrade/topgrade.linux.toml
41 + ~/.config/topgrade.toml
46 + wezterm/wezterm.service
47 + ~/.config/systemd/user/wezterm.service
50 + ~/.config/helix/config.toml
53 + ~/.config/helix/languages.toml
56 + ~/.config/helix/themes
58 + helix/systemd/helix-dark-mode.service
59 + ~/.config/systemd/user/helix-dark-mode.service
42 + * warn if trying to load a lsp client, that has no command
42 43 * navic highlights do not fit winbar
43 44 * make highlights more visible when expanding snippets
44 45 * cursor restore position on (session?) load jumps one location to somewhere
neovim/after/queries/lua/highlights.scm Modified 3 - ((
"local" @keyword) (#set! conceal
"·" ))
4 3 ((
"function" @keyword.function) (#set! conceal
"λ" ))
5 - ((
"return" @keyword.return) (#set! conceal
"" ))
neovim/ftplugin/lua.lua Modified 7 7 vim.opt_local.suffixesadd:prepend
'.lua' 8 8 vim.opt_local.conceallevel
= 1 9 + vim.opt_local.concealcursor
= 'n' 10 11 local map
= require 'std.map' neovim/lazy-lock.json Modified 19 19 "glow.nvim" : {
"branch" :
"main" ,
"commit" :
"238070a686c1da3bccccf1079700eb4b5e19aea4" },
20 20 "heirline.nvim" : {
"branch" :
"master" ,
"commit" :
"03cff30d7e7d3ba6fdc00925f015822f79cef908" },
21 21 "indent-blankline.nvim" : {
"branch" :
"master" ,
"commit" :
"3d08501caef2329aba5121b753e903904088f7e6" },
22 - "lazy.nvim" : {
"branch" :
"main" ,
"commit" :
"31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
22 + "lazy.nvim" : {
"branch" :
"main" ,
"commit" :
"bef521ac89c8d423f9d092e37b58e8af0c099309" },
23 23 "lspkind.nvim" : {
"branch" :
"master" ,
"commit" :
"1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
24 24 "lua-utils.nvim" : {
"branch" :
"main" ,
"commit" :
"e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
25 25 "mason-tool-installer.nvim" : {
"branch" :
"main" ,
"commit" :
"b129892f783740e6cf741f2ea09fa5dd512aa584" },
27 27 "mini.bracketed" : {
"branch" :
"main" ,
"commit" :
"65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
28 28 "mkdir.nvim" : {
"branch" :
"main" ,
"commit" :
"c55d1dee4f099528a1853b28bb28caa802eba217" },
29 29 "neodev.nvim" : {
"branch" :
"main" ,
"commit" :
"ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
30 + "neogen" : {
"branch" :
"main" ,
"commit" :
"0daffcec249bf42275e322361fe55b89a05ff278" },
30 31 "neorg" : {
"branch" :
"main" ,
"commit" :
"c17b8e9e7327e03f78fbdccfb15abd09ec607bd0" },
31 32 "neotest" : {
"branch" :
"master" ,
"commit" :
"f03a78cef74db5638e4312e18b767294a90de8da" },
32 33 "neotest-plenary" : {
"branch" :
"master" ,
"commit" :
"dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" },
neovim/lua/bugabinga/lsp/clients/java.lua Modified 3 3 local table = require 'std.table' 4 4 local project
= require 'std.project' 5 5 local auto
= require 'std.auto' 6 6 local map
= require 'std.map' 8 - local create_shared_config_path = function ( base_path, syntax_server )
10 - if vim.fn.has
'linux' == 1 then 11 - os_config
= syntax_server
and 'config_ss_linux' or 'config_linux' 12 - elseif vim.fn.has
'mac' == 1 then 13 - os_config
= syntax_server
and 'config_ss_mac' or 'config_mac' 15 - os_config
= syntax_server
and 'config_ss_win' or 'config_win' 17 - return vim.fs.joinpath( base_path, os_config )
20 - local find_launcher_jar = function ( base_path )
21 - local plugins_dir
= vim.fs.joinpath( base_path,
'plugins' )
22 - local launchers
= vim.fn.globpath( plugins_dir,
'org.eclipse.equinox.launcher_*.jar' ,
false ,
true )
24 - if table .is_empty( launchers )
then 25 - error (
'Could not find jdtls launcher jar in ' .. plugins_dir )
32 - local create_data_dir = function ()
33 - local cwd
= vim.uv.cwd()
or '' 34 - local data_name
= vim.fn.sha256( cwd )
35 - local cache
= vim.fn.stdpath
'cache' 36 - cache
= type ( cache )
== 'table' and cache[
1 ]
or cache
38 - return vim.fs.joinpath( cache,
'jdtls_data' , data_name )
41 - local function get_bundles ()
42 - local mason_registry
= require 'mason-registry' 43 - local java_debug
= mason_registry.get_package
'java-debug-adapter' 44 - local java_test
= mason_registry.get_package
'java-test' 45 - local java_debug_path
= java_debug:get_install_path()
46 - local java_test_path
= java_test:get_install_path()
49 - vim.list_extend( bundles,
55 - vim.fn.glob( java_debug_path
.. '/extension/server/com.microsoft.java.debug.plugin-*.jar' ),
'\n' ) )
56 - vim.list_extend( bundles, vim.split( vim.fn.glob( java_test_path
.. '/extension/server/*.jar' ),
'\n' ) )
60 - local create_jdtls_command = function ( syntax_server )
61 - local mason_registry
= require 'mason-registry' 62 - local jdtls_package_path
= mason_registry.get_package
'jdtls' :get_install_path()
63 - local shared_config_path
= create_shared_config_path( jdtls_package_path, syntax_server )
64 - local launcher_jar
= find_launcher_jar( jdtls_package_path )
65 - local data_dir
= create_data_dir()
67 - local ss_option
= syntax_server
and '-Dsyntaxserver=true' or nil 71 - '-Declipse.application=org.eclipse.jdt.ls.core.id1' ,
72 - '-Dosgi.bundles.defaultStartLevel=4' ,
73 - '-Declipse.product=org.eclipse.jdt.ls.core.product' ,
74 - '-Dlog.protocol=true' ,
76 - '-Dosgi.checkConfiguration=true' ,
77 - '-Dosgi.sharedConfiguration.area=' .. shared_config_path,
78 - '-Dosgi.sharedConfiguration.area.readOnly=true' ,
79 - '-Dosgi.configuration.cascaded=true' ,
80 - '--add-modules=ALL-SYSTEM' ,
81 - '--add-opens' ,
'java.base/java.util=ALL-UNNAMED' ,
82 - '--add-opens' ,
'java.base/java.lang=ALL-UNNAMED' ,
83 - '-jar' , launcher_jar,
89 - table .
insert ( command,
2 , ss_option )
95 8 local find_jdks = function ()
96 9 local host
= vim.uv.os_gethostname()
159 - local jdtls_lsp_start = function ( config, opts )
161 - require 'jdtls' .start_or_attach( config, opts )
164 - local get_extended_capabilites = function ()
165 - local ext
= require 'jdtls' .extendedClientCapabilities
166 - ext.resolveAdditionalTextEditsSupport
= true 170 72 local on_attach = function ()
171 - local jdtls
= require 'jdtls' 172 73 vim.lsp.codelens.refresh()
173 - jdtls.setup_dap {
hotcodereplace =
'auto' , }
174 - require 'jdtls.dap' .setup_dap_main_class_configs()
175 - require 'jdtls.setup' .add_commands()
178 - description =
'Organize Imports' ,
179 - category =
'jdlts' ,
180 - keys =
'<leader>ljo' ,
181 - command = jdtls.organize_imports,
185 - description =
'Extract Variable' ,
186 - category =
'jdlts' ,
187 - keys =
'<leader>ljv' ,
188 - command = jdtls.extract_variable,
192 - description =
'Extract Constant' ,
193 - category =
'jdlts' ,
194 - keys =
'<leader>ljc' ,
195 - command = jdtls.extract_constant,
199 - description =
'Test Nearest Method' ,
200 - category =
'jdlts' ,
201 - keys =
'<leader>ljt' ,
202 - command = jdtls.test_nearest_method,
206 - description =
'Test Class' ,
207 - category =
'jdlts' ,
208 - keys =
'<leader>ljT' ,
209 - command = jdtls.test_class,
213 - description =
'Update Config' ,
214 - category =
'jdlts' ,
215 - keys =
'<leader>lju' ,
216 - command =
'<cmd>JdtUpdateConfig<cr>' ,
220 - description =
'Extract Variable' ,
221 - category =
'jdlts' ,
222 - keys =
'<leader>ljv' ,
223 - command =
function () jdtls.extract_variable(
true )
end ,
227 - description =
'Extract Constant' ,
228 - category =
'jdlts' ,
229 - keys =
'<leader>ljc' ,
230 - command =
function () jdtls.extract_constant(
true )
end ,
234 - description =
'Extract Method' ,
235 - category =
'jdlts' ,
236 - keys =
'<leader>ljm' ,
237 - command =
function () jdtls.extract_method(
true )
end ,
240 74 auto
'refresh_codelens' {
241 75 events =
'BufWritePost' ,
242 76 description =
'Refreshes LSP CodeLens after java file is written.' ,
250 - custom_start = jdtls_lsp_start,
251 84 filetypes =
'java' ,
252 - command = create_jdtls_command(
false ),
253 86 root_dir = project.find_java_project_root,
254 87 single_file_support =
true ,
255 88 workspaces =
true ,
256 89 settings = {
java = java_settings, },
257 90 on_attach = on_attach,
259 - bundles = get_bundles(),
260 - extendedClientCapabilities = get_extended_capabilites(),
neovim/lua/bugabinga/plugins/jdtls.lua Deleted deleted file mode 1006441 - return {
'bugabinga/nvim-jdtls' , }
neovim/lua/bugabinga/plugins/mason.lua Deleted deleted file mode 100644 2 - 'williamboman/mason.nvim' ,
7 - border = vim.g.border_style,
14 - 'WhoIsSethDaniel/mason-tool-installer.nvim' ,
17 - ensure_installed = {
18 - 'lua-language-server' ,
20 - 'editorconfig-checker' ,
24 - 'java-debug-adapter' ,
neovim/lua/bugabinga/plugins/neorg.lua Deleted deleted file mode 100644 5 - {
'nvim-lua/plenary.nvim' ,
version =
'0.1.4' , },
6 - {
'nvim-neorg/lua-utils.nvim' ,
version =
'1.0.2' , },
7 - {
'nvim-neotest/nvim-nio' ,
version =
'1.7.*' , },
8 - {
'MunifTanjim/nui.nvim' ,
version =
'0.3.0' , },
9 - {
'nvim-treesitter/nvim-treesitter' , },
12 - package .
loaded [
'neorg' ]
= nil 14 - require 'neorg' .setup_after_build()
15 - pcall ( vim.cmd.Neorg,
'sync-parsers' )
21 - [
'core.defaults' ] = {},
22 - [
'core.concealer' ] = {
33 - [
'core.completion' ] = {
35 - engine =
'nvim-cmp' ,
38 - [
'core.presenter' ] = {
40 - zen_mode =
'zen-mode' ,
11 11 IdentityFile ~/.ssh/github.key
16 + IdentityFile ~/.ssh/seaduck.key
13 18 # catch-all pattern
new file mode 100644 5 + Bitstream Vera Sans Mono
29 + Monaspace Krypton Var
wezterm/wezterm.lua Modified 19 19 enable_wayland
= true 20 20 elseif hostname
== 'NB-00718' then
22 + elseif hostname
== 'fedora' then
24 + local font_names
= {}
25 + local nerdfonts
= io .
open (wez.config_dir
.. '/nerdfonts' ,
'r' )
26 + for font_name
in nerdfonts:lines()
do 27 + table .
insert (font_names,font_name)
29 + local random_font
= font_names[
math .
random (
# font_names)]
30 + font
= wez.font(random_font)
49 58 hide_tab_bar_if_only_one_tab
= false ,
50 59 use_fancy_tab_bar
= false ,
51 60 check_for_updates
= false ,
52 - show_update_window
= false ,
53 61 audible_bell
= 'Disabled' ,
55 63 fade_in_duration_ms =
69 ,