From 4fbb2ac6c0f1510fc2b68af01316ae61132a1bec Mon Sep 17 00:00:00 2001 From: Kim Ravn Hansen Date: Mon, 3 Nov 2025 10:50:19 +0100 Subject: [PATCH] Stuffy --- .gitignore | 2 -- .nvim.lua | 14 ++++++++++++++ .spell.add | 12 ++++++++++++ rules.adoc | 4 +++- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100755 .nvim.lua create mode 100755 .spell.add diff --git a/.gitignore b/.gitignore index 9fc6312..d42ab35 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ out/* -.nvimrc -.spell* diff --git a/.nvim.lua b/.nvim.lua new file mode 100755 index 0000000..43d2ca3 --- /dev/null +++ b/.nvim.lua @@ -0,0 +1,14 @@ +vim.notify("Local nvim config loaded", vim.log.levels.INFO) + +------------------------------------------------------------- +-- Set spell info, but only for files inside the current dir +------------------------------------------------------------ +local project_root = vim.fn.getcwd() +vim.api.nvim_create_autocmd("BufEnter", { + pattern = project_root .. "/*", + callback = function() + vim.opt_local.spell = true + vim.opt_local.spelllang = "en" + vim.opt_local.spellfile = project_root .. "/.spell.add" + end, +}) diff --git a/.spell.add b/.spell.add new file mode 100755 index 0000000..1df2e88 --- /dev/null +++ b/.spell.add @@ -0,0 +1,12 @@ +Tissemand +Garg +WYRDS +Targ +Farg +golem +Cowlbear +Gooblin +Halvbitter +Mandag +badass +Djinn diff --git a/rules.adoc b/rules.adoc index 5085848..f4af75a 100755 --- a/rules.adoc +++ b/rules.adoc @@ -926,7 +926,7 @@ This chapter is not for * Map ** The world should be weird and funny, but not ridiculous. ** ShipWorld: the world, when seen from above, looks like the outline of a - ship, that's seen from above. But instead of being made of wooden planks, + ship, that's also seen from above. But instead of being made of wooden planks, there is real terrain and flora. But there should/could be elevation changes where the different decks (such as the Poop Deck) are. *** What's around the ship? @@ -983,3 +983,5 @@ This chapter is not for ** Halvbitter: more badass than Djinn ** Gooblin ** Cowlbear (a bear in a cowl?) + +