Include oil
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled

This commit is contained in:
nichkara
2026-02-14 09:10:04 +01:00
parent 3a69bd9cd9
commit 4b1aa4c634
3 changed files with 9 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ for variable in variables:
if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"):
variableless = variable.replace("\t", "").replace (" ", "")
snip.rv += f"\t-- @variable {variableless}\n"
` -- @description $5
` -- @description $5
function ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` return ${3:Natural} is
$4
begin
@@ -185,8 +185,12 @@ if t[6] == "y":
endsnippet
snippet package "Create package configuration" b
package ${1:body }${2:`!p package_name = fn.split('.')[0]
snip.rv = package_name[0].upper() + package_name[1:]`} is
package ${1:body }${2:`!p package_name = fn.split('.')[0].replace("-", ".")
components = package_name.split('.')
structured = ""
for component in components:
structured = structured + "." + component[0].upper() + component[1:]
snip.rv = structured[1:]`} is
$0
end $2;
endsnippet

View File

@@ -27,7 +27,7 @@ require("oil").setup({
-- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
delete_to_trash = false,
-- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
skip_confirm_for_simple_edits = false,
skip_confirm_for_simple_edits = true,
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
-- (:help prompt_save_on_select_new_entry)
prompt_save_on_select_new_entry = true,

View File

@@ -59,4 +59,4 @@ vim.g.gitblame_date_format = "%r"
vim.keymap.set("n", "<C-t>", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal <CR>")
-- Set default colorscheme
vim.cmd("colo vim-monokai-tasty")
vim.cmd("colo synthweave-transparent")