repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

helix: adds helix configuration

8fb08300f1cbf683dfe90a3091f47921c094269e

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (10)

EJ-PC-00363.symlinks

Modified
32 32 ~/AppData/Roaming/Subversion/config
34 34 cargo/config.toml
35 -~/.cargo/config.toml
35 +~/scoop/persist/rustup/.cargo/config.toml
37 37 indexa/config.windows.toml
38 38 ~/AppData/Roaming/indexa/config.toml
40 40 wezterm
41 41 ~/.config/wezterm
43 +helix/config.toml
44 +~/AppData/Roaming/helix/config.toml
46 +helix/themes
47 +~/AppData/Roaming/helix/themes

helix/config.toml

Added
new file mode 100644
1 +theme = "nord"
3 +[editor]
4 +shell = [ "nu", "--commands" ]
6 +[lsp]
7 +display-messages = true

helix/themes/nugu.toml

Added
new file mode 100644
1 +module = { modifieres = ["bold"] }
2 +namespace = { fg = "minor" }
4 +comment = { fg = "important" }
6 +string = { modifiers = ["bold", "italic"] }
7 +number = { modifieres = ["bold"] }
8 +escape = { bg = "minor", modifiers = ["italic"] }
10 +keyword = { fg = "minor" }
11 +attribute = { fg = "minor" }
12 +punctuation = { fg = "minor" }
14 +variable = { modifieres = ["bold"] }
15 +property = { modifieres = ["bold"] }
16 +constant = { modifieres = ["bold"] }
17 +function = { modifieres = ["bold"] }
19 +"ui.background" = { bg = "ui_backdrop" }
20 +"ui.linenr" = { fg = "ui_minor" }
21 +"ui.linenr.selected" = { fg = "ui_normal" }
22 +"ui.statusline" = { fg = "ui_minor" }
23 +"ui.statusline.inactive" = { fg = "minor", bg = "backdrop" }
24 +"ui.popup" = { fg = "ui_important", bg = "ui_minor" }
25 +"ui.window" = { fg = "ui_important" }
26 +"ui.help" = { fg = "ui_important" }
27 +"ui.text" = { fg = "normal" }
28 +"ui.text.focus" = { fg = "important" }
30 +"ui.selection" = { bg = "ui_selection", modifiers = ["reversed"] }
31 +"ui.selection.primary" = { bg = "ui_selection" }
33 +"ui.cursor" = { bg = "ui_cursor", modifiers = ["dim"] }
34 +"ui.cursor.primary" = { bg = "ui_cursor" }
35 +"ui.cursor.insert" = { modifiers = ["reversed"] }
36 +"ui.cursor.select" = { bg = "ui_cursor" }
37 +"ui.cursor.match" = { fg = "important" , modifiers = ["rapid_blink"] }
39 +"ui.menu.selected" = { fg = "ui_important", modifiers = ["underlined"] }
40 +"ui.highlight" = { bg = "ui_minor", modifiers = ["slow_blink"] }
42 +diagnostic = { fg = "ui_normal", modifiers = ["underlined"] }
44 +warning = { bg = "ui_warning" }
45 +error = { bg = "ui_error", modifiers = ["rapid_blink"] }
46 +info = { bg = "ui_info" }
47 +hint = { fg = "ui_info" }
49 +[palette]
50 +normal = "#c9c9c9"
51 +backdrop = "#131313"
52 +important = "#f0f0f0"
53 +minor = "#818181"
55 +ui_normal = "#31ae99"
56 +ui_selection = "#d03fc0"
57 +ui_cursor = "#9f0fc0"
58 +ui_backdrop = "#121e3f"
59 +ui_important = "#aefeff"
60 +ui_minor = "#113131"
62 +ui_error = "#A21300"
63 +ui_warning = "#A2A213"
64 +ui_info = "#13A2A2"

neovim/init.lua

Modified
64 64 local non_interactive = #vim.api.nvim_list_uis() == 0
65 65 -- Load the plugins module into the global namespace in order to reference them later in keymaps
66 66 Plugins = require("plugins")(data_path, non_interactive)
68 67 -- Lazy load the plugin manager packer, when using these commands
69 68 -- cheatsheet':PluginsInstall => Install the specified plugins if they are not already installed'
70 69 vim.cmd([[command! PluginsInstall packadd packer.nvim | lua Plugins.install()]])

neovim/lua/general_editor_settings.lua

Modified
93 93 -- Use true colors
94 94 vim.opt.termguicolors = true
95 95 vim.opt.lazyredraw = true
96 - vim.opt.guifont = "BlexMono NF:h13:1"
96 + vim.opt.guifont = "JetBrainsMono Nerd Font:h14:1"
97 97 -- Set cursor position to last known position, when entering a window
98 98 autocommand({
99 99 restore_cursor_position = [[ BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif ]],
112 112 -- Disable some built-in plugins we don't want
113 113 local disabled_built_ins = {
114 - "gzip",
115 - "man",
116 - "matchit",
117 - "matchparen",
118 - "shada_plugin",
119 - "tar",
120 - "tarPlugin",
121 - "zip",
122 - "zipPlugin",
123 - "netrw",
124 - "netrwPlugin",
125 - "spec",
126 - "2html_plugin",
114 + "netrw",
115 + "netrwPlugin",
116 + "netrwSettings",
117 + "netrwFileHandlers",
118 + "gzip",
119 + "zip",
120 + "zipPlugin",
121 + "tar",
122 + "tarPlugin",
123 + "getscript",
124 + "getscriptPlugin",
125 + "vimball",
126 + "vimballPlugin",
127 + "2html_plugin",
128 + "logipat",
129 + "rrhelper",
130 + "spellfile_plugin",
131 + "matchit"
128 133 for _, built_in in ipairs(disabled_built_ins) do
129 134 vim.g["loaded_" .. built_in] = 1

neovim/lua/lsp.lua

Modified
226 226 -- Null-ls
227 - local nls = require("null-ls")
229 - nls.setup({
230 - debug = false,
227 + local nls = require'null-ls'
228 + nls.config{
229 + debug = false,
230 + -- Format: [CODE] MESSAGE (SOURCE)
231 + diagnostics_format = "[#{c}] #{m} (#{s})",
232 + sources = {
233 + nls.builtins.formatting.stylua,
234 + -- this is a nice linter, but wihtout configuration, it spews too much nonsense.
235 + -- one can define the stdlib for vim in a config file, but the builtin selene does not find the config file.
236 + -- this is a general issue with formatters/linters integrated into neovim.
237 + -- how should i handle this?
238 + -- write a function, that searches the path to root for a config file? (internal stylua behaviour)
239 + -- somehow make sure, that vim root folder is always correct...?
240 + -- nls.builtins.diagnostics.selene,
241 + },
243 + lsp["null-ls"].setup({
231 244 capabilites = capabilities,
232 - -- Format: [CODE] MESSAGE (SOURCE)
233 - diagnostics_format = "[#{c}] #{m} (#{s})",
234 - sources = {
235 - nls.builtins.formatting.stylua,
236 - -- this is a nice linter, but wihtout configuration, it spews too much nonsense.
237 - -- one can define the stdlib for vim in a config file, but the builtin selene does not find the config file.
238 - -- this is a general issue with formatters/linters integrated into neovim.
239 - -- how should i handle this?
240 - -- write a function, that searches the path to root for a config file? (internal stylua behaviour)
241 - -- somehow make sure, that vim root folder is always correct...?
242 - -- nls.builtins.diagnostics.selene,
243 - },
244 245 on_attach = integrate_into_neovim,

neovim/lua/plugins.lua

Modified
287 + use({ 'NoahTheDuke/vim-just' })
287 289 -- automatically size splits reasonably
289 291 "beauwilliams/focus.nvim",

neovim/lua/statusline.lua

Modified
26 26 local diagnostics_line_context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }
27 27 local lsp_parameters = vim.lsp.util.make_range_params()
28 28 lsp_parameters.context = diagnostics_line_context
29 - vim.lsp.buf_request(0, "textDocument/codeAction", lsp_parameters, function(error, _, result)
29 + --FIXME: when LSP has no caode action, this throws annoying error
30 + --[[ pcall( function() vim.lsp.buf_request(0, "textDocument/codeAction", lsp_parameters, function(error, _, result)
30 31 if not error and result then
31 32 code_actions_count = #result
33 34 code_actions_count = 0
37 + end) ]]
37 39 -- refresh the statuslines of all windows.
38 40 -- the current window gets special treatment. it is "active".

pop-os.symlinks

Modified
40 40 wezterm
41 41 ~/.config/wezterm
43 +helix/config.toml
44 +~/.config/helix/config.toml
46 +helix/themes
47 +~/.config/helix/themes

x230.symlinks

Modified
43 43 wezterm
44 44 ~/.config/wezterm
46 +helix/config.toml
47 +~/.config/helix/config.toml
49 +helix/themes
50 +~/.config/helix/themes