repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: refactores lsp configs for version 0.11 neovim: split up options into smaller chunks neovim: new incubator plugin: arrow

f21154c0ab4222b9211f42715196beeb2ffac514

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

unsigned

Browse filesCompare with HEAD

Changed files (23)

neovim/lsp/ast_grep.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'ast-grep', 'lsp' },
3 + workspace_required = true,
4 + filetypes = {
5 + 'rust',
6 + 'go',
7 + 'java',
8 + 'lua',
9 + },
10 + root_markers = { 'sgconfig.yaml', 'sgconfig.yml' },

neovim/lsp/hyprls.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'hyprls', '--stdio' },
3 + filetypes = { 'hyprlang' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/lemminx.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'lemminx' },
3 + filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg' },
4 + root_markers = { '.git', '.svn' },
5 +}

neovim/lsp/marksman.lua

Added
new file mode 100644
1 +local bin_name = 'marksman'
2 +local cmd = { bin_name, 'server' }
4 +return {
5 + cmd = cmd,
6 + filetypes = { 'markdown', 'markdown.mdx' },
7 + root_markers = { '.marksman.toml', '.git' },
8 +}

neovim/lsp/nushell.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'nu', '--lsp' },
3 + filetypes = { 'nu' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/pkgbuild_ls.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'pkgbuild-language-server' },
3 + filetypes = { 'PKGBUILD' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/protols.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'protols' },
3 + filetypes = { 'proto' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/superhtml.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'superhtml', 'lsp' },
3 + filetypes = { 'superhtml', 'html' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/taplo.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'taplo', 'lsp', 'stdio' },
3 + filetypes = { 'toml' },
4 + root_markers = { '.taplo.toml', 'taplo.toml', '.git' },
5 +}

neovim/lsp/ziggy.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'ziggy', 'lsp' },
3 + filetypes = { 'ziggy' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/ziggy_schema.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'ziggy', 'lsp', '--schema' },
3 + filetypes = { 'ziggy_schema' },
4 + root_markers = { '.git' },
5 +}

neovim/lsp/zls.lua

Added
new file mode 100644
1 +return {
2 + cmd = { 'zls' },
3 + filetypes = { 'zig', 'zir' },
4 + root_markers = { 'zls.json', 'build.zig', '.git' },
5 + workspace_required = false,
6 +}

neovim/lua/bugabinga/incubator.lua

Modified
111 111 -------------------------------------------------------------------------------
112 +puk.defer 'nvim-autopairs' (function(autopairs)
113 + autopairs.setup {
114 + disable_filetype = ignored.filetypes,
115 + disable_in_visualblock = true,
116 + check_ts = true,
118 +end)
119 +-------------------------------------------------------------------------------
120 +puk.defer 'arrow' (function(arrow)
121 + arrow.setup{
122 + show_icons = true,
123 + leader_key = ';',
124 + buffer_leader_key = 'm',
126 +end)
127 +-------------------------------------------------------------------------------

neovim/lua/bugabinga/lsp.lua

Modified
1 1 local puk = require 'std.puk'
2 +local const = require'std.const'
2 3 local project = require 'std.project'
3 4 local dbg = require 'std.dbg'
4 5 local icon = require 'std.icon'
15 16 -- enable multiline tokens for all lsps
16 17 vim.lsp.config ("*", { capabilities = { textDocument = { semanticTokens = { multilineTokenSupport = true }}}})
19 +if not const.win32 then
20 + vim.lsp.enable {
21 + 'pkgbuild_ls',
22 + 'hyprls',
23 + }
24 +end
18 26 vim.lsp.enable {
27 + 'gopls',
28 + 'lemminx',
19 29 'lua_ls',
20 - 'gopls'
30 + 'marksman',
31 + 'nushell',
32 + 'protols',
33 + 'superhtml',
34 + 'taplo',
35 + 'ziggy',
36 + 'ziggy_schema',
37 + 'zls',
23 -local language_servers = {
24 - zls = { root_dir = project.find_zig_project_root },
25 - ziggy = { root_dir = project.find_zig_project_root },
26 - ziggy_schema = { root_dir = project.find_zig_project_root },
27 - ast_grep = {},
28 - gopls = {
29 - analyses = {
30 - unusedparams = true,
31 - shadow = true,
32 - },
33 - staticcheck = true,
34 - gofumpt = true,
35 - completeUnimported = true,
36 - usePlaceholders = true,
37 - matcher = 'Fuzzy',
38 - diagnosticsDelay = '500ms',
39 - hints = {
40 - assignVariableTypes = true,
41 - compositeLiteralFields = true,
42 - constantValues = true,
43 - functionTypeParameters = true,
44 - parameterNames = true,
45 - rangeVariableTypes = true,
46 - },
47 - },
48 - hyprls = {},
49 - lemminx = {},
50 - marksman = {},
51 - nushell = {},
52 - protols = {},
53 - taplo = {},
56 41 local lsp_attach = function ( args )
57 42 local bufnr = args.buf

neovim/lua/bugabinga/options/core.lua

Added
new file mode 100644
1 +local icon = require 'std.icon'
3 +-- disable some runtime providers that i will not use.
4 +-- keeps checkhealth clean
5 +-- pls stop haunting me python...
6 +vim.g.loaded_python3_provider = 0
7 +vim.g.loaded_ruby_provider = 0
8 +vim.g.loaded_node_provider = 0
9 +vim.g.loaded_perl_provider = 0
11 +-- Disable builtin statusline of qf window
12 +vim.g.qf_disable_statusline = 1
14 +-- NEOVIM EDITOR OPTIONS
16 +-- Keep track of file changes outside of vim
17 +vim.opt.autoread = true
19 +-- encode files in UTF-8
20 +vim.opt.fileencoding = 'utf-8'
22 +-- do not create local backup files
23 +vim.opt.backup = true
24 +-- by default backups are created next to the edited file.
25 +-- that tends to pollute the workspace.
26 +-- instead, backup to the second default directory only.
27 +-- neovim should create it if it does not exist.
28 +-- the double slash at the end means something important...
29 +-- i think it means to use full path as name for backup files to avoid
30 +-- collisions.
31 +vim.opt.backupdir = vim.fn.stdpath 'state' .. '/backup//'
33 +-- do not make a backup before writing to a file
34 +vim.opt.writebackup = true
36 +-- save a swap file after every 100 typed characters.
37 +vim.opt.swapfile = true
38 +vim.opt.updatecount = 100
40 +-- enable persistent undo. save undo history across neovim instances
41 +vim.opt.undofile = true
43 +-- How many milliseconds must pass before neovim decides I was "idle"
44 +vim.opt.updatetime = 50
45 +-- How long to wait between key sequences in order to chain them. e.g. <LEADER>b
46 +vim.opt.timeoutlen = 250
48 +-- allow commands like find, grep, ... to search for files recursively
49 +vim.opt.path:append '**'
50 +-- ignore some files from path
51 +vim.opt.wildignore = {
52 + "*.o",
53 + "*.obj",
54 + "*.class",
55 + "*.jar",
56 + "*.zig-cache",
57 + "zig-out/*",
58 + "target/*",
59 + "output/*",
60 + "*.rlib",
61 + "*.dylib",
62 + "*.so",
63 + "*.a",
64 + "*.exe",
65 + "*.dll",
66 + "*.pdb",
67 + "*.mod",
68 + "*.sum",
69 + "*.swp",
70 + "*.swo",
71 + "*.tmp",
72 + "*.bak",
73 + "*/vendor/*",
74 + "*/node_modules/*",
75 + "*/.git/*",
78 +-- wrap line movements, when start/end is reached
79 +vim.opt.whichwrap:append '<'
80 +vim.opt.whichwrap:append '>'
81 +vim.opt.whichwrap:append '['
82 +vim.opt.whichwrap:append ']'
83 +vim.opt.whichwrap:append 'h'
84 +vim.opt.whichwrap:append 'l'
86 +-- treat words separated by a dash as one word. used in snail-case-convention
87 +vim.opt.iskeyword:append '-'
89 +-- Tabs and Spaces, i like 'em 2 spaces wide
90 +-- only insert spaces for tabs if language configuration explicitly declares so
91 +vim.opt.expandtab = false
92 +local tab_size = 2
93 +vim.opt.tabstop = tab_size
94 +vim.opt.shiftwidth = tab_size
95 +vim.opt.softtabstop = tab_size
96 +vim.opt.shiftround = true
97 +-- insert whitespace type based on whitespace on previous line
98 +vim.opt.smarttab = true
100 +vim.opt.wrap = false
101 +-- wrapped lines will continue on indentation
102 +vim.opt.breakindent = true
104 +-- do not keep distance to borders while scrolling
105 +vim.opt.scrolloff = 0
106 +vim.opt.sidescrolloff = 0
108 +-- try to guess indentation based on context
109 +vim.opt.smartindent = true
110 +-- Keep indentation of new lines in line with previous lines
111 +vim.opt.autoindent = true
112 +vim.opt.copyindent = true
114 +-- open splits to the right and below
115 +vim.opt.splitbelow = true
116 +vim.opt.splitright = true
117 +vim.opt.splitkeep = 'screen'
119 +-- enable mouse
120 +vim.opt.mouse = 'a'
121 +-- disable popup menu on right click
122 +vim.opt.mousemodel = 'popup_setpos'
124 +-- highlight all search matches
125 +vim.opt.hlsearch = true
126 +-- enable smart case in searches
127 +vim.opt.ignorecase = true
128 +vim.opt.smartcase = true
129 +vim.opt.incsearch = true
130 +vim.opt.showmatch = true
131 +vim.opt.hidden = true
133 +-- Show the effects of substitutions incrementally
134 +vim.opt.inccommand = 'nosplit'
136 +-- ask me to force failed commands
137 +vim.opt.confirm = true
139 +-- show trailing whitespace
140 +vim.opt.list = true
141 +vim.opt.listchars = {
142 + -- space = icon.space,
143 + -- eol = icon.eol,
144 + -- tab = icon.tab .. icon.middle_ellipsis,
145 + tab = ' ',
146 + trail = icon.trail,
147 + extends = icon.extends,
148 + precedes = icon.precedes,
149 + nbsp = icon.nbsp,
152 +-- do not spam the cmdline with every little input
153 +vim.opt.showcmd = false
155 +-- autocomplete menu in command buffer
156 +vim.opt.wildmode = 'full'
157 +vim.opt.wildignorecase = true
158 +vim.opt.wildoptions = 'fuzzy,pum'
160 +-- completion popup in buffer
161 +vim.opt.completeopt:append 'menuone'
162 +vim.opt.completeopt:append 'noselect'
163 +vim.opt.completeopt:append 'popup'
165 +-- always display the signcolumn to avoid jitter
166 +vim.opt.signcolumn = 'yes:2'
168 +-- what is a ruler? me?
169 +vim.opt.ruler = false
171 +-- avoid jitter by keeping status area big
172 +vim.opt.laststatus = 3
174 +-- hide weird symbol at end of buffer
175 +vim.opt.fillchars = {
176 + eob = ' ',
177 + lastline = ' ',
178 + diff = '╱',
179 + wbr = ' ',
181 + horiz = '─',
182 + horizup = '┴',
183 + horizdown = '┬',
184 + vert = '│',
185 + vertleft = '┤',
186 + vertright = '├',
187 + verthoriz = '┼',
190 +-- better have no syntax highlighting than regex based, treesitter will take over later
191 +vim.opt.syntax = 'off'
193 +-- hide output of insert completion popup in status
194 +-- vim.opt.shortmess:append 'c'
195 +-- hide vim intro screen
196 +vim.opt.shortmess:append 'I'
197 +-- truncate messages at end
198 +-- vim.opt.shortmess:append 't'
200 +-- show cmd window to prevent jitter UI
201 +vim.opt.cmdheight = 1
203 +-- do not conceal special characters by default. ftplugin can enable this on demand.
204 +vim.opt.conceallevel = 0
206 +-- I do not care for folding
207 +vim.opt.foldenable = false
209 +-- show visual indicators for lines too long
210 +vim.opt.colorcolumn = { '80', '120', '140' }
212 +-- highlight the current line
213 +vim.opt.cursorline = false
215 +-- pop up menu height
216 +vim.opt.pumheight = 10
218 +-- no transparent popups and floating windows
219 +vim.opt.pumblend = 0
220 +vim.opt.winblend = 0
222 +-- use this in various places for consistent border style
223 +vim.g.border_style = {
224 + { "🬷", 'FloatBorderCorner' }, -- top left
225 + { "▔", 'FloatBorder' }, -- top
226 + { "🬲", 'FloatBorderCorner' }, -- top right
227 + { "🮈", 'FloatBorder' }, -- right
228 + { "🬕", 'FloatBorderCorner' }, -- bottom right
229 + { "▁", 'FloatBorder' }, -- bottom
230 + { "🬨", 'FloatBorderCorner' }, -- bottom left
231 + { "▍", 'FloatBorder' }, -- left
234 +-- hide the mode indicator in status
235 +vim.opt.showmode = false
237 +-- always show tabs, to avoid jitter UI
238 +vim.opt.showtabline = 2
240 +-- scroll by screen lines if buffer is wrapped
241 +vim.opt.smoothscroll = true

neovim/lua/bugabinga/options/grep.lua

Added
new file mode 100644
1 +if vim.fn.executable 'rg' then
2 + -- use ripgrep instead of grep
3 + vim.opt.grepprg = 'rg --hidden --vimgrep --no-heading --smart-case -- '
4 + vim.opt.grepformat = '%f:%l:%c:%m'
5 +end
7 +require 'bugabinga.health'.add_dependency
8 +{
9 + name = 'Ripgrep',
10 + name_of_executable = 'rg',

neovim/lua/bugabinga/options/init.lua

Modified
1 -local const = require 'std.const'
2 -local icon = require 'std.icon'
4 --- disable some runtime providers that i will not use.
5 --- keeps checkhealth clean
6 --- pls stop haunting me python...
7 -vim.g.loaded_python3_provider = 0
8 -vim.g.loaded_ruby_provider = 0
9 -vim.g.loaded_node_provider = 0
10 -vim.g.loaded_perl_provider = 0
12 --- Disable builtin statusline of qf window
13 -vim.g.qf_disable_statusline = 1
15 --- add new filetypes rearly on
16 1 require 'bugabinga.options.filetypes'
18 --- NEOVIM EDITOR OPTIONS
20 --- Keep track of file changes outside of vim
21 -vim.opt.autoread = true
23 --- encode files in UTF-8
24 -vim.opt.fileencoding = 'utf-8'
26 --- do not create local backup files
27 -vim.opt.backup = true
28 --- by default backups are created next to the edited file.
29 --- that tends to pollute the workspace.
30 --- instead, backup to the second default directory only.
31 --- neovim should create it if it does not exist.
32 --- the double slash at the end means something important...
33 --- i think it means to use full path as name for backup files to avoid
34 --- collisions.
35 -vim.opt.backupdir = vim.fn.stdpath 'state' .. '/backup//'
37 --- do not make a backup before writing to a file
38 -vim.opt.writebackup = true
40 --- save a swap file after every 100 typed characters.
41 -vim.opt.swapfile = true
42 -vim.opt.updatecount = 100
44 --- enable persistent undo. save undo history across neovim instances
45 -vim.opt.undofile = true
47 --- How many milliseconds must pass before neovim decides I was "idle"
48 -vim.opt.updatetime = 50
49 --- How long to wait between key sequences in order to chain them. e.g. <LEADER>b
50 -vim.opt.timeoutlen = 250
52 --- allow commands like find, grep, ... to search for files recursively
53 -vim.opt.path:append '**'
54 --- ignore some files from path
55 -vim.opt.wildignore = {
56 - "*.o",
57 - "*.obj",
58 - "*.class",
59 - "*.jar",
60 - "*.zig-cache",
61 - "zig-out/*",
62 - "target/*",
63 - "output/*",
64 - "*.rlib",
65 - "*.dylib",
66 - "*.so",
67 - "*.a",
68 - "*.exe",
69 - "*.dll",
70 - "*.pdb",
71 - "*.mod",
72 - "*.sum",
73 - "*.swp",
74 - "*.swo",
75 - "*.tmp",
76 - "*.bak",
77 - "*/vendor/*",
78 - "*/node_modules/*",
79 - "*/.git/*",
82 --- wrap line movements, when start/end is reached
83 -vim.opt.whichwrap:append '<'
84 -vim.opt.whichwrap:append '>'
85 -vim.opt.whichwrap:append '['
86 -vim.opt.whichwrap:append ']'
87 -vim.opt.whichwrap:append 'h'
88 -vim.opt.whichwrap:append 'l'
90 --- treat words separated by a dash as one word. used in snail-case-convention
91 -vim.opt.iskeyword:append '-'
93 --- Tabs and Spaces, i like 'em 2 spaces wide
94 --- only insert spaces for tabs if language configuration explicitly declares so
95 -vim.opt.expandtab = false
96 -local tab_size = 2
97 -vim.opt.tabstop = tab_size
98 -vim.opt.shiftwidth = tab_size
99 -vim.opt.softtabstop = tab_size
100 -vim.opt.shiftround = true
101 --- insert whitespace type based on whitespace on previous line
102 -vim.opt.smarttab = true
104 -vim.opt.wrap = false
105 --- wrapped lines will continue on indentation
106 -vim.opt.breakindent = true
108 --- do not keep distance to borders while scrolling
109 -vim.opt.scrolloff = 0
110 -vim.opt.sidescrolloff = 0
112 --- try to guess indentation based on context
113 -vim.opt.smartindent = true
114 --- Keep indentation of new lines in line with previous lines
115 -vim.opt.autoindent = true
116 -vim.opt.copyindent = true
118 --- open splits to the right and below
119 -vim.opt.splitbelow = true
120 -vim.opt.splitright = true
121 -vim.opt.splitkeep = 'screen'
123 --- enable mouse
124 -vim.opt.mouse = 'a'
125 --- disable popup menu on right click
126 -vim.opt.mousemodel = 'popup_setpos'
128 -vim.schedule( function()
129 -if vim.fn.executable 'nu' then
130 - -- setting the shell too early can block startup
131 - vim.schedule(function()
132 - -- integrate Nushell with nvim
133 - vim.opt.shell = 'nu'
134 - -- flags for nu:
135 - -- * `--stdin` redirect all input to -c
136 - -- * `--no-newline` do not append `\n` to stdout
137 - -- * `--commands` execute a command
138 - vim.opt.shellcmdflag = '--stdin --no-newline --commands'
139 - -- string to be used to put the output of shell commands in a temp file
140 - -- 1. when 'shelltemp' is `true`
141 - -- 2. in the `diff-mode` (`nvim -d file1 file2`) when `diffopt` is set
142 - -- to use an external diff command: `set diffopt-=internal`
143 - vim.opt.shellredir = 'out+err> "%s"'
144 - -- string to be used with `:make` command to:
145 - -- 1. save the stderr of `makeprg` in the temp file which Neovim reads using `errorformat` to populate the `quickfix` buffer
146 - -- 2. show the stdout, stderr on the screen
147 - -- NOTE: `ansi strip` removes all ansi coloring from nushell errors
148 - vim.opt.shellpipe =
149 - '| complete | get stderr stdout | str join (char nl) | ansi strip | tee { save --force --raw "%s" }'
150 - -- WARN: disable the usage of temp files for shell commands
151 - -- because Nu doesn't support `input redirection` which Neovim uses to send buffer content to a command:
152 - -- `{shell_command} < {temp_file_with_selected_buffer_content}`
153 - -- When set to `false` the stdin pipe will be used instead.
154 - -- NOTE: some info about `shelltemp`: https://github.com/neovim/neovim/issues/1008
155 - vim.opt.shelltemp = false
156 - vim.opt.shellxquote = ''
157 - vim.opt.shellxescape = ''
158 - vim.opt.shellquote = ''
159 - end)
160 -end
162 -require 'bugabinga.health'.add_dependency
164 - name = 'Nushell',
165 - name_of_executable = 'nu',
168 -end)
170 --- highlight all search matches
171 -vim.opt.hlsearch = true
172 --- enable smart case in searches
173 -vim.opt.ignorecase = true
174 -vim.opt.smartcase = true
175 -vim.opt.incsearch = true
176 -vim.opt.showmatch = true
177 -vim.opt.hidden = true
179 --- Show the effects of substitutions incrementally
180 -vim.opt.inccommand = 'nosplit'
182 -vim.schedule( function()
183 -if vim.fn.executable 'rg' then
184 - -- use ripgrep instead of grep
185 - vim.opt.grepprg = 'rg --hidden --vimgrep --no-heading --smart-case -- '
186 - vim.opt.grepformat = '%f:%l:%c:%m'
187 -end
189 -require 'bugabinga.health'.add_dependency
191 - name = 'Ripgrep',
192 - name_of_executable = 'rg',
194 - end)
196 --- ask me to force failed commands
197 -vim.opt.confirm = true
2 +require 'bugabinga.options.core'
199 4 vim.schedule(function()
200 -if const.wsl or const.win32 then
201 - require 'bugabinga.health'.add_dependency
202 - {
203 - name = 'win32yank',
204 - name_of_executable = 'win32yank.exe',
205 - }
206 - vim.g.clipboard = {
207 - name = 'win32yank-wsl',
208 - copy = {
209 - ['+'] = 'win32yank.exe -i --crlf',
210 - ['*'] = 'win32yank.exe -i --crlf',
211 - },
212 - paste = {
213 - ['+'] = 'win32yank.exe -o --lf',
214 - ['*'] = 'win32yank.exe -o --lf',
215 - },
216 - cache_enabled = true,
217 - }
218 -end
219 -end)
221 --- show trailing whitespace
222 -vim.opt.list = true
223 -vim.opt.listchars = {
224 - -- space = icon.space,
225 - -- eol = icon.eol,
226 - -- tab = icon.tab .. icon.middle_ellipsis,
227 - tab = ' ',
228 - trail = icon.trail,
229 - extends = icon.extends,
230 - precedes = icon.precedes,
231 - nbsp = icon.nbsp,
234 -vim.schedule(function()
235 --- force English messages
236 -vim.cmd [[ language en_US.utf8 ]]
238 --- keeps title in terminal uptodate
239 -vim.cmd [[ set title ]]
240 -end)
242 --- do not spam the cmdline with every little input
243 -vim.opt.showcmd = false
245 --- autocomplete menu in command buffer
246 -vim.opt.wildmode = 'full'
247 -vim.opt.wildignorecase = true
248 -vim.opt.wildoptions = 'fuzzy,pum'
250 --- completion popup in buffer
251 -vim.opt.completeopt:append 'menuone'
252 -vim.opt.completeopt:append 'noselect'
253 -vim.opt.completeopt:append 'popup'
255 --- always display the signcolumn to avoid jitter
256 -vim.opt.signcolumn = 'yes:2'
258 --- what is a ruler? me?
259 -vim.opt.ruler = false
261 --- avoid jitter by keeping status area big
262 -vim.opt.laststatus = 3
264 --- hide weird symbol at end of buffer
265 -vim.opt.fillchars = {
266 - eob = ' ',
267 - lastline = ' ',
268 - diff = '╱',
269 - wbr = ' ',
271 - horiz = '─',
272 - horizup = '┴',
273 - horizdown = '┬',
274 - vert = '│',
275 - vertleft = '┤',
276 - vertright = '├',
277 - verthoriz = '┼',
280 --- better have no syntax highlighting than regex based, treesitter will take over later
281 -vim.opt.syntax = 'off'
283 --- hide output of insert completion popup in status
284 --- vim.opt.shortmess:append 'c'
285 --- hide vim intro screen
286 -vim.opt.shortmess:append 'I'
287 --- truncate messages at end
288 --- vim.opt.shortmess:append 't'
290 --- show cmd window to prevent jitter UI
291 -vim.opt.cmdheight = 1
293 --- do not conceal special characters by default. ftplugin can enable this on demand.
294 -vim.opt.conceallevel = 0
296 --- I do not care for folding
297 -vim.opt.foldenable = false
299 --- show visual indicators for lines too long
300 -vim.opt.colorcolumn = { '80', '120', '140' }
302 --- highlight the current line
303 -vim.opt.cursorline = false
305 --- pop up menu height
306 -vim.opt.pumheight = 10
308 --- no transparent popups and floating windows
309 -vim.opt.pumblend = 0
310 -vim.opt.winblend = 0
312 --- use this in various places for consistent border style
313 -vim.g.border_style = {
314 - { "🬷", 'FloatBorderCorner' }, -- top left
315 - { "▔", 'FloatBorder' }, -- top
316 - { "🬲", 'FloatBorderCorner' }, -- top right
317 - { "🮈", 'FloatBorder' }, -- right
318 - { "🬕", 'FloatBorderCorner' }, -- bottom right
319 - { "▁", 'FloatBorder' }, -- bottom
320 - { "🬨", 'FloatBorderCorner' }, -- bottom left
321 - { "▍", 'FloatBorder' }, -- left
324 --- hide the mode indicator in status
325 -vim.opt.showmode = false
327 --- always show tabs, to avoid jitter UI
328 -vim.opt.showtabline = 2
330 -local is_tty = vim.env.XDG_SESSION_TYPE == 'tty' and vim.env.SSH_TTY == ''
331 -if is_tty then
332 - vim.opt.termguicolors = false
333 - vim.g.nerdfont = false
334 - vim.opt.lazyredraw = true
335 -else
336 - vim.opt.termguicolors = true
337 - vim.g.nerdfont = true
338 - vim.opt.lazyredraw = false
339 -end
341 --- scroll by screen lines if buffer is wrapped
342 -vim.opt.smoothscroll = true
344 --- cursor
345 --- vim.opt.guicursor = 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50'
347 --- font
348 --- vim.opt.guifont = 'Cousine,Symbols Nerd Font Mono:h15:#e-subpixelantialias:#h-none'
350 --- neovide only options
351 -if vim.g.neovide then
352 - vim.g.neovide_profiler = false
353 - -- interpret all touch events as scroll events
354 - vim.g.neovide_touch_deadzone = 0.0
355 - -- after this timeout, start a visual selection
356 - vim.g.neovide_underline_stroke_scale = 2.5
357 - vim.g.neovide_touch_drag_timeout = 0.69
358 - vim.g.neovide_padding_top = 8
359 - vim.g.neovide_padding_left = 8
360 - vim.g.neovide_padding_bottom = 0
361 - vim.g.neovide_padding_right = 0
362 - vim.g.neovide_hide_mouse_when_typing = true
363 - vim.g.neovide_refresh_rate_idle = 5
364 - vim.g.neovide_theme = 'auto'
365 - vim.g.experimental_layer_grouping = true
366 -end
368 -vim.schedule(function()
369 -require 'bugabinga.options.behaviour'
370 -require 'bugabinga.options.keymaps'
371 -require 'bugabinga.options.spelling'
372 -require 'bugabinga.options.commands'
373 -require 'bugabinga.options.menus'
5 + require 'bugabinga.options.behaviour'
6 + require 'bugabinga.options.keymaps'
7 + require 'bugabinga.options.spelling'
8 + require 'bugabinga.options.commands'
9 + require 'bugabinga.options.menus'
10 + require 'bugabinga.options.shell'
11 + require 'bugabinga.options.win32'
12 + require 'bugabinga.options.neovide'
13 + require 'bugabinga.options.tty'

neovim/lua/bugabinga/options/neovide.lua

Added
new file mode 100644
1 +if vim.g.neovide then
2 + vim.g.neovide_profiler = false
3 + -- interpret all touch events as scroll events
4 + vim.g.neovide_touch_deadzone = 0.0
5 + -- after this timeout, start a visual selection
6 + vim.g.neovide_underline_stroke_scale = 2.5
7 + vim.g.neovide_touch_drag_timeout = 0.69
8 + vim.g.neovide_padding_top = 8
9 + vim.g.neovide_padding_left = 8
10 + vim.g.neovide_padding_bottom = 0
11 + vim.g.neovide_padding_right = 0
12 + vim.g.neovide_hide_mouse_when_typing = true
13 + vim.g.neovide_refresh_rate_idle = 5
14 + vim.g.neovide_theme = 'auto'
15 + vim.g.experimental_layer_grouping = true
16 +end

neovim/lua/bugabinga/options/shell.lua

Added
new file mode 100644
1 +if vim.fn.executable 'nu' then
2 + -- integrate Nushell with nvim
3 + vim.opt.shell = 'nu'
4 + -- flags for nu:
5 + -- * `--stdin` redirect all input to -c
6 + -- * `--no-newline` do not append `\n` to stdout
7 + -- * `--commands` execute a command
8 + vim.opt.shellcmdflag = '--stdin --no-newline --commands'
9 + -- string to be used to put the output of shell commands in a temp file
10 + -- 1. when 'shelltemp' is `true`
11 + -- 2. in the `diff-mode` (`nvim -d file1 file2`) when `diffopt` is set
12 + -- to use an external diff command: `set diffopt-=internal`
13 + vim.opt.shellredir = 'out+err> "%s"'
14 + -- string to be used with `:make` command to:
15 + -- 1. save the stderr of `makeprg` in the temp file which Neovim reads using `errorformat` to populate the `quickfix` buffer
16 + -- 2. show the stdout, stderr on the screen
17 + -- NOTE: `ansi strip` removes all ansi coloring from nushell errors
18 + vim.opt.shellpipe =
19 + '| complete | get stderr stdout | str join (char nl) | ansi strip | tee { save --force --raw "%s" }'
20 + -- WARN: disable the usage of temp files for shell commands
21 + -- because Nu doesn't support `input redirection` which Neovim uses to send buffer content to a command:
22 + -- `{shell_command} < {temp_file_with_selected_buffer_content}`
23 + -- When set to `false` the stdin pipe will be used instead.
24 + -- NOTE: some info about `shelltemp`: https://github.com/neovim/neovim/issues/1008
25 + vim.opt.shelltemp = false
26 + vim.opt.shellxquote = ''
27 + vim.opt.shellxescape = ''
28 + vim.opt.shellquote = ''
29 +end
31 +require 'bugabinga.health'.add_dependency
33 + name = 'Nushell',
34 + name_of_executable = 'nu',

neovim/lua/bugabinga/options/tty.lua

Added
new file mode 100644
1 +local is_tty = vim.env.XDG_SESSION_TYPE == 'tty' and vim.env.SSH_TTY == ''
2 +if is_tty then
3 + vim.opt.termguicolors = false
4 + vim.g.nerdfont = false
5 + vim.opt.lazyredraw = true
6 +else
7 + vim.opt.termguicolors = true
8 + vim.g.nerdfont = true
9 + vim.opt.lazyredraw = false
10 +end

neovim/lua/bugabinga/options/win32.lua

Added
new file mode 100644
1 +local const = require 'std.const'
3 +if const.wsl or const.win32 then
4 + require 'bugabinga.health'.add_dependency
5 + {
6 + name = 'win32yank',
7 + name_of_executable = 'win32yank.exe',
8 + }
9 + vim.g.clipboard = {
10 + name = 'win32yank-wsl',
11 + copy = {
12 + ['+'] = 'win32yank.exe -i --crlf',
13 + ['*'] = 'win32yank.exe -i --crlf',
14 + },
15 + paste = {
16 + ['+'] = 'win32yank.exe -o --lf',
17 + ['*'] = 'win32yank.exe -o --lf',
18 + },
19 + cache_enabled = true,
20 + }
21 +end

neovim/puk.plugins.nuon

Modified
7 7 commit,
8 8 build
10 - [
11 - lspconfig,
12 - github,
13 - neovim/nvim-lspconfig,
14 - master,
15 - "39dc331899521bbb4e102b614b71ab37464f8326",
16 - null
17 - ],
19 11 nvim-treesitter,
20 12 github,
294 286 master,
295 287 "c23f200fee469a415c77265ca55b496feb646992",
297 - ]
289 + ],
291 + nvim-autopairs,
292 + github,
293 + windwp/nvim-autopairs,
294 + master,
295 + "4d74e75913832866aa7de35e4202463ddf6efd1b",
296 + null
297 + ],
299 + arrow,
300 + github,
301 + otavioschwanck/arrow.nvim,
302 + master,
303 + "6e0f726f55f99332dd726a53effd6813786b6d49",
304 + null

tools/packages.nuon

Modified
2 2 [name binary version win32_url lnx_url];
3 + [
4 + ziggy
5 + ziggy
6 + 0.0.1
7 + https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-windows.zip
8 + https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-linux-musl.tar.xz
9 + ]
10 + [
11 + superhtml
12 + superhtml
13 + 0.5.3
14 + https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-windows.zip
15 + https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-linux-musl.tar.gz
16 + ]
4 18 lemminx
5 19 lemminx
67 81 Contextive.LanguageServer
68 82 Contextive.LanguageServer
69 - 1.12.1
83 + 1.17.0
70 84 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-win-x64-{ version }.zip
71 85 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-linux-x64-{ version }.zip