diff --git a/UltiSnips/ada.snippets b/UltiSnips/ada.snippets index b55995d..6168afc 100644 --- a/UltiSnips/ada.snippets +++ b/UltiSnips/ada.snippets @@ -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 diff --git a/lua/explorer.lua b/lua/explorer.lua index 0c34800..28a8e16 100644 --- a/lua/explorer.lua +++ b/lua/explorer.lua @@ -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, diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 5693403..83da87a 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -59,4 +59,4 @@ vim.g.gitblame_date_format = "%r" vim.keymap.set("n", "", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal ") -- Set default colorscheme -vim.cmd("colo vim-monokai-tasty") +vim.cmd("colo synthweave-transparent")