Compare commits

...

8 Commits

Author SHA1 Message Date
2ca3682564 add keybindings for following definitions / references 2025-12-12 12:25:07 +01:00
1eb6626965 add owo programme for more useless crap for when I am bored. 2025-12-12 12:25:07 +01:00
4f83f044b6 remove lf-nvim in preference of mini.lua 2025-12-12 12:25:07 +01:00
f99e215cbd remove all options that will be using the defaults. 2025-12-10 11:04:00 +01:00
8c842122cf sort opts alphabetically 2025-12-10 10:32:14 +01:00
822af1d987 replaced uwu with an uwu binary. 2025-12-08 14:23:05 +01:00
9d4cce8bae remove reserved identifier from clang tidy configurations.
Sometimes I just have to use the reserved identifier.
2025-12-08 14:22:44 +01:00
f11376c1a4 remove unused executables 2025-12-08 13:03:57 +01:00
10 changed files with 19 additions and 64 deletions

View File

@@ -16,6 +16,7 @@ Checks:
- '-bugprone-easily-swappable-parameters'
- '-clang-analyzer-security.insecureAPI.*'
- '-misc-include-cleaner'
- '-bugprone-reserved-identifier'
WarningsAsErrors: ''
HeaderFileExtensions:
- ''

View File

@@ -20,3 +20,4 @@ Diagnostics:
- bugprone-implicit-widening-of-multiplication-result
- bugprone-switch-missing-default-case
- bugprone-easily-swappable-parameters
- bugprone-reserved-identifier

View File

@@ -31,6 +31,8 @@ Map('n', 'K', vim.lsp.buf.hover, { desc = 'symbol hover' })
Map('n', '<F2>', vim.lsp.buf.rename, { desc = 'rename symbol' })
Map('n', '<leader>lm', vim.diagnostic.open_float, { desc = 'view line\'s diagnostic messages' })
Map('n', '<leader>q', vim.lsp.buf.code_action, { desc = 'view quickfix list' })
Map('n', 'gd', vim.lsp.buf.definition, { desc = "Go to the definition" })
Map('n', 'gr', vim.lsp.buf.references, { desc = "Go to the reference" })
-- smart tabulation
Map('i', '<tab>', function()

View File

@@ -2,17 +2,8 @@ local o = vim.opt
-- set options
o.clipboard = "unnamedplus" -- keep the clipboard in sync with the one provided by the OS
o.termguicolors = true -- allows for colour in the terminal
o.number = true -- show line numbers
o.cursorline = true -- highlight the current line
o.cursorcolumn = false -- highlight the current column
o.dir = vim.fn.stdpath('cache') .. '/swp' -- swap directory location for recovery
o.sessionoptions = 'buffers,curdir,folds,help,localoptions,tabpages,terminal'
o.expandtab = false -- whether tabs are expanded to spaces (overridden by .editorconfig)
o.diffopt = 'internal,filler,closeoff,linematch:60' -- diff visualisation
o.foldenable = true -- whether folding is enabled
o.wrap = false -- whether to wrap text to a new line when it goes off-screen
o.breakindent = true -- wrapped lines start at the same location as the start of the line
o.ignorecase = true -- whether case should be ignored whilst searching
o.list = true -- shows invisible characters
o.listchars = { -- whitespace characters
eol = nil,
@@ -23,30 +14,25 @@ o.listchars = { -- whitespace charact
space = '·',
nbsp = '',
}
o.mouse = 'nv' -- which modes the mouse is enabled in 'a:all'
o.number = true -- show line numbers
o.relativenumber = true -- whether line numbers are relative to the cursor
o.scrolloff = 10 -- minimal number of screen lines to keep above and below the cursor
o.showtabline = 2 -- whether to show the tab line
o.signcolumn = 'yes' -- always show the signcolumn, otherwise it shifts text all the time
o.tabstop = 8 -- visual spaces per tab
o.softtabstop = 8 -- spaces inserted per tab in insert mode
o.sessionoptions = 'buffers,curdir,folds,help,localoptions,tabpages,terminal'
o.shiftwidth = 8 -- spaces for auto-indent
o.smartindent = true -- behave a bit more nuanced with when to indent
o.ignorecase = true -- whether case should be ignored whilst searching
o.smartcase = true -- overrides the above option if contains capital letters
o.inccommand = 'split' -- split|nosplit whether substitutions should appear whilst typing.
o.splitbelow = true -- force all horizontal splits below the current window
o.splitright = true -- force all vertical splits to the right of this window
o.showmode = false -- don't show mode as this is already in the status line
o.signcolumn = 'yes' -- always show the signcolumn, otherwise it shifts text all the time
o.smartcase = true -- overrides the above option if contains capital letters
o.smartindent = true -- behave a bit more nuanced with when to indent
o.spell = true -- whether spell checking is enabled
o.spellfile = vim.fn.stdpath('config') .. '/spell/user.utf-8.add'
o.spelllang = 'en_gb,nl' -- set the spell languages
o.termguicolors = true -- allows for colour in the terminal
o.timeoutlen = 300 -- number of MS to wait for a mapped sequence to complete
o.ttimeoutlen = 0 -- number of MS to wait for a key sequence to complete
o.undodir = vim.fn.stdpath('cache') .. '/undo' -- directory for undo files
o.undofile = true -- for saving the undo history
o.undolevels = 1024 -- the amount of changes that can be undone
o.timeoutlen = 300 -- number of MS to wait for a mapped sequence to complete
o.ttimeoutlen = 0 -- number of MS to wait for a key sequence to complete
o.updatetime = 250 -- number of MS of nothing typed to write a swap file to disk.
o.spell = true -- whether spell checking is enabled
o.spelllang = 'en_gb,nl' -- set the spell languages
o.spellfile = vim.fn.stdpath('config') .. '/spell/user.utf-8.add'
o.wrap = false -- whether to wrap text to a new line when it goes off-screen
vim.diagnostic.config({
underline = true, -- use underline for diagnostics

View File

@@ -1,21 +0,0 @@
---@module 'lazy'
---@type LazySpec
return { {
'lmburns/lf.nvim',
lazy = false,
dependencies = { 'akinsho/toggleterm.nvim' },
---@module 'lf'
---@type Lf.Config
opts = {
direction = 'float',
border = 'rounded',
},
config = function(_, opts)
vim.g.lf_netrw = 1
local lf = require('lf')
lf.setup(opts)
Map({ 'n' }, '<leader>o', lf.start, { desc = 'Shows the LF window' })
end
} }

View File

@@ -69,6 +69,8 @@ require('mini.diff').setup({ -- shows git diffs in the file
style = 'sign',
}
})
require('mini.files').setup() -- file browser
Map('n', '<leader>o', MiniFiles.open, { desc = "Open mini file browser" })
require('mini.jump').setup() -- extends f,F,t,T to work across multiple lines
require('mini.cursorword').setup() -- highlight words beneath the cursor
require('mini.icons').setup()

View File

@@ -1,2 +0,0 @@
#!/usr/bin/sh
"$HOME/.local/share/emsdk/emsdk" "$@"

BIN
.local/bin/owo Executable file

Binary file not shown.

View File

@@ -1,14 +0,0 @@
#!/usr/bin/sh
if [ -z ${var+2} ]; then
printf "\033[91mno parameters were given!\033[0m\n"
fi
for i in $2; do
readonly fname
fname="$(basename "$i" .*)"
mkdir "$fname"
cd "$fname" || return 1
unzip "../$i"
cd - || return 1
done

Binary file not shown.