From 886d4348494b21a4962f4b063bdc5f69e39bca82 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Mon, 24 Feb 2025 07:37:01 +0100 Subject: [PATCH 01/20] Adjust Ada snippets to styleguide --- UltiSnips/ada.snippets | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/UltiSnips/ada.snippets b/UltiSnips/ada.snippets index 96ca6de..0fb6aa1 100644 --- a/UltiSnips/ada.snippets +++ b/UltiSnips/ada.snippets @@ -36,15 +36,15 @@ def find_candidate(tabstop, search_type): endglobal snippet helloworld "Hello world example to test features" b --- `!p snip.rv = fn` --- Created on: `date` --- Author(s): Yannick Reiss --- Content: Hello world example +-- `!p snip.rv = fn` +-- Created on: `date` +-- Author(s): Yannick Reiss +-- Content: Hello world example with Ada.Text_IO; use Ada.Text_IO; --- @name ${1:`!p snip.rv = fn[0].upper() + fn[1:].split('.')[0]`} --- @return --- @description Function printing hello world. +-- @name ${1:`!p snip.rv = fn[0].upper() + fn[1:].split('.')[0]`} +-- @return +-- @description Function printing hello world. procedure $1 is begin @@ -53,16 +53,16 @@ end $1;$0 endsnippet snippet docstring "Document String with most important information" b --- `!p snip.rv = fn` --- Created on: `date` --- Author(s): ${1:Yannick Reiß} --- Description: ${2:`!p snip.rv = fn.split('.')[0]`} +-- `!p snip.rv = fn` +-- Created on: `date` +-- Author(s): ${1:Yannick Reiß} +-- Description: ${2:`!p snip.rv = fn.split('.')[0]`} $0 endsnippet snippet procedure "insert procedure" b --- @name $1 --- @return +-- @name $1 +-- @return `!p snip.rv = "" if t[2].startswith("l"): @@ -96,7 +96,7 @@ for variable in variables: if not variable == "" and not variable.startswith("typ"): variableless = variable.replace("\t", "").replace (" ", "") snip.rv += f"-- @variable {variableless}\n" -`-- @description $4 +`-- @description $4 procedure ${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 ")"` is $3 begin @@ -105,8 +105,8 @@ end $1;$0 endsnippet snippet function "insert function" b --- @name $1 --- @return $3 +-- @name $1 +-- @return $3 `!p snip.rv = "" if t[2].startswith("l"): @@ -129,7 +129,7 @@ for parameter in parameters: for parameter in parameter_list: if not parameter == "" and not parameter.startswith("typ"): parameterless = parameter.replace("\t", "") - snip.rv += f"-- @parameter {parameterless}\n" + snip.rv += f"-- @parameter {parameterless}\n" ``!p snip.rv = "" if t[4].startswith("l"): @@ -139,7 +139,7 @@ else: for variable in variables: if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"): variableless = variable.replace("\t", "").replace (" ", "") - snip.rv += f"-- @variable {variableless}\n" + snip.rv += f"-- @variable {variableless}\n" ` -- @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 @@ -178,7 +178,7 @@ project ${1:Default} is for Main use ("${5:main.adb}"); for Languages use ("Ada"); end $1; --- Create dir? (y/): ${6:no}`!p +-- Create dir? (y/): ${6:no}`!p from os import system if t[6] == "y": system(f"mkdir -p {t[2]}") From 06c098c19461a6c42d38799b9a00684c17d8fda3 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sat, 15 Mar 2025 19:19:36 +0100 Subject: [PATCH 02/20] Python updates --- UltiSnips/pyenv.snippets | 6 ++++++ UltiSnips/tex.snippets | 2 ++ UltiSnips/vhdl.snippets | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 UltiSnips/pyenv.snippets diff --git a/UltiSnips/pyenv.snippets b/UltiSnips/pyenv.snippets new file mode 100644 index 0000000..51313bd --- /dev/null +++ b/UltiSnips/pyenv.snippets @@ -0,0 +1,6 @@ +global !p + +def print_hello(): + print("Hello") + +endglobal diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets index 73bf26a..df9e089 100644 --- a/UltiSnips/tex.snippets +++ b/UltiSnips/tex.snippets @@ -1,3 +1,5 @@ +extends pyenv + snippet cc "Add Citation" i \\cite{$1}$0 endsnippet diff --git a/UltiSnips/vhdl.snippets b/UltiSnips/vhdl.snippets index 4d6345b..f51feb3 100644 --- a/UltiSnips/vhdl.snippets +++ b/UltiSnips/vhdl.snippets @@ -49,7 +49,7 @@ endsnippet snippet docstring "Header Comment" A -- `!p snip.rv = fn` -- Created on: `date` --- Author(s): ${1:Alexander Graf, Carl Ries, Yannick Reiß} +-- Author(s): ${1:Nina Chloé Reiß} -- Content: ${2: Entity `!p snip.rv = fn.split('.')[0]`} $0 endsnippet From 339d5b1197be6ee1157de29251db816c332e754b Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 18 Mar 2025 11:01:17 +0100 Subject: [PATCH 03/20] add password file to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6370acd..3bb8547 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ lastSession.vim plugin/ spell/ +./mail_password From ae06236c2c78c6cdc6c26953736781436123979d Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 18 Mar 2025 11:01:38 +0100 Subject: [PATCH 04/20] Add mail client to nvim --- lua/mail.lua | 29 +++++++++++++++++++++++++++++ lua/plugconfig.lua | 3 +++ lua/plugins.lua | 4 ++++ mail_password.gpg | 15 +++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 lua/mail.lua create mode 100644 mail_password.gpg diff --git a/lua/mail.lua b/lua/mail.lua new file mode 100644 index 0000000..b9f45b9 --- /dev/null +++ b/lua/mail.lua @@ -0,0 +1,29 @@ +vim.g.iris_name = "Nina Chloé Kassandra Reiß" +vim.g.iris_mail = "nina.reiss@nickr.eu" + +local cmd = io.popen("whoami") +local get_lua_configuration_directory + +if cmd == nil then + get_lua_configuration_directory = "root" +else + get_lua_configuration_directory = cmd:read("*a") + cmd:close() +end + +local directory_path +if get_lua_configuration_directory == "root" then + directory_path = "/root/.config/nvim" +else + directory_path = "/home/" .. get_lua_configuration_directory .. "/.config/nvim" +end + +vim.g.iris_imap_host = "mail.nickr.eu" +vim.g.iris_imap_port = 143 +vim.g.iris_imap_login = "yannick.reiss@nickr.eu" +vim.g.iris_imap_passwd_filepath = directory_path .. "mail_password.gpg" + +vim.g.iris_smtp_host = "smtp.nickr.eu" +vim.g.iris_smtp_port = 587 +vim.g.iris_smtp_login = "yannick.reiss@nickr.eu" +vim.g.iris_smtp_passwd_filepath = directory_path .. "mail_password.gpg" diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 8669a0b..3e1d2ab 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -25,6 +25,9 @@ require("pascal_mode") -- Ada mode (supported by plugins) require("ada_mode") +-- Mail configuration +require("mail") + -- Misc configuration if vim == nil then vim = {} diff --git a/lua/plugins.lua b/lua/plugins.lua index 8e5763d..91452f9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -58,6 +58,7 @@ return { "f-person/git-blame.nvim", "dstein64/vim-startuptime", "NStefan002/screenkey.nvim", + "hiphish/rainbow-delimiters.nvim", -- Themes "folke/tokyonight.nvim", @@ -91,4 +92,7 @@ return { -- Plugins to test "https://git.nickr.eu/yannickreiss/nvim-macrotool.git", + + -- E-Mail client and office setup + "soywod/iris.vim", } diff --git a/mail_password.gpg b/mail_password.gpg new file mode 100644 index 0000000..0bfc39f --- /dev/null +++ b/mail_password.gpg @@ -0,0 +1,15 @@ +-----BEGIN PGP MESSAGE----- + +hF4D7SdwCs0TtR8SAQdAnK7+vhdEeHAQMkTbfuC9F4DuPtbNff2CGXMcFuv1k3Yw +Tj/wXDP1IV5mJdGVCH3PAbZme+UX4jybW934fIo8je109OIyAPra4bn75S1A4klb +1MDjAQkCEBd5WJKvyyF8NwmavnF7JMHOl9pzuo26BwakfmWhJaTH3Wt5YDkk94C8 +ebqCJB7ER2Yqbos2/Ln8h2f7E20qKaWe2oWklJZTnSGiwcs0CKs3rgRkOP84glP+ ++SH/L5Epu6APawedrW+Sm2o7HZF0/reZMFB10gqDSMW19VuzRhmPDejldco37ME5 +cd9WVeRNXv7LlSjU1JIcgm6M5FFNsDBFw1Gz4RGic3flN4yulWQx5GgPWU1ePpml ++AUzZGSpgmWB6pMvZrlf+HaQMc3zUoNRdSyB78SiCJcl+9iDpprCMxsgi43DFB6p +ipjQxvXOKT3kko2DW8gcr03VDMQ9P3Pz7E/GSzUlsaOkOCL+/xed+y23IYuOVlt6 +cHRhrY7nSPpTLuaP/gABJPQLLrUnldSf6LK6hp66SLn5igMfklL6zvDNVPzkz+wT +B6nyxD2sEuj/KklhsR3YESJK9QhySq3llgMhOM7m9cFt0+X/rOgROvpwkVApVpDS +ymjfPtZo56XvHO+uv8vdt8nk06NySTcfXorTOGgxYlKRmX9OMRU= +=pKVC +-----END PGP MESSAGE----- From a02cf6a90241c0a4f0fe5ea2ab65a4f62fda9853 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 18 Mar 2025 11:05:20 +0100 Subject: [PATCH 05/20] Mail client --- lua/mail.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/mail.lua b/lua/mail.lua index b9f45b9..ee266b6 100644 --- a/lua/mail.lua +++ b/lua/mail.lua @@ -27,3 +27,9 @@ vim.g.iris_smtp_host = "smtp.nickr.eu" vim.g.iris_smtp_port = 587 vim.g.iris_smtp_login = "yannick.reiss@nickr.eu" vim.g.iris_smtp_passwd_filepath = directory_path .. "mail_password.gpg" + +-- specify mail configuration +vim.g.iris_idle_enabled = 0 +vim.g.iris_idle_timeout = 300 +vim.g.iris_emails_chunk_size = 25 +vim.g.iris_download_dir = "~/Downloads" From 67eaafaee9b4a4a35f17ea9d65235b1f19cf2ae4 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 18 Mar 2025 11:32:00 +0100 Subject: [PATCH 06/20] Add ignore --- .gitignore | 1 + lua/plugconfig.lua | 5 ++++- lua/plugins.lua | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3bb8547..bb0e74e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ lastSession.vim plugin/ spell/ ./mail_password +./lua/irc.lua diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 3e1d2ab..f6e645e 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -26,7 +26,10 @@ require("pascal_mode") require("ada_mode") -- Mail configuration -require("mail") +-- require("mail") + +-- IRC configuration +require("irc") -- Misc configuration if vim == nil then diff --git a/lua/plugins.lua b/lua/plugins.lua index 91452f9..bda1a0d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -93,6 +93,7 @@ return { -- Plugins to test "https://git.nickr.eu/yannickreiss/nvim-macrotool.git", - -- E-Mail client and office setup + -- Message clients and office setup "soywod/iris.vim", + { "shadmansaleh/IRC.nvim", rocks = "openssl" }, } From b11d36ba160b6a6209d89f8c76fb47db3831b817 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 25 Mar 2025 08:52:24 +0100 Subject: [PATCH 07/20] Snippets --- UltiSnips/all.snippets | 12 ++++++++++-- UltiSnips/irc.snippets | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 UltiSnips/irc.snippets diff --git a/UltiSnips/all.snippets b/UltiSnips/all.snippets index d88fece..f038d75 100644 --- a/UltiSnips/all.snippets +++ b/UltiSnips/all.snippets @@ -2,10 +2,18 @@ snippet dd "Date and Time" i `date` endsnippet -snippet cred "My private Credentials" -Nicki Reiss +snippet crednick "My private Credentials" +Yannick Reiss endsnippet snippet credhsrm "Credentials HSRM" Yannick Reiß endsnippet + +snippet crednina "My true credentials" +Nina Chloé Kassandra Reiß +endsnippet + +snippet pwd "Print the current working directory" +`echo $(pwd)` +endsnippet diff --git a/UltiSnips/irc.snippets b/UltiSnips/irc.snippets new file mode 100644 index 0000000..aa07bcf --- /dev/null +++ b/UltiSnips/irc.snippets @@ -0,0 +1,7 @@ +snippet ff "Freunde (fast)" A +.freunde +endsnippet + +snippet wild "Widi Schild update" +widi: Schildupdate? +endsnippet From c91101470c10c77ef1300ab743f3001e9fe41b5e Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Thu, 27 Mar 2025 11:33:35 +0100 Subject: [PATCH 08/20] Change default colorscheme --- lua/plugconfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index f6e645e..0313007 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -29,7 +29,7 @@ require("ada_mode") -- require("mail") -- IRC configuration -require("irc") +require("irc_client") -- Misc configuration if vim == nil then @@ -61,4 +61,4 @@ require("screenkeyconfig") -- Set default colorscheme -- vim.cmd("colo vim-monokai-tasty") -vim.cmd("colo sonokai") +vim.cmd("colo vim-monokai-tasty") From 9da04ad7e85da7294c07621bcde3d28bdd60ef85 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Fri, 28 Mar 2025 07:47:55 +0100 Subject: [PATCH 09/20] No ensure installed lsps --- lua/lspconfiguration.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lua/lspconfiguration.lua b/lua/lspconfiguration.lua index 848ecac..e68cf8c 100644 --- a/lua/lspconfiguration.lua +++ b/lua/lspconfiguration.lua @@ -11,15 +11,7 @@ require("mason").setup(require("mason").setup({ require("mason-lspconfig").setup({ ensure_installed = { - "asm_lsp", - "clangd", - "hls", "lua_ls", - "rust_analyzer", - "vhdl_ls", - "verible", - "vimls", - "texlab", }, }) From 8e09bfd6b7ad814bb885573cdbba01d3826ef261 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Mon, 31 Mar 2025 09:58:29 +0200 Subject: [PATCH 10/20] Remove autoformat --- lua/ada_mode.lua | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lua/ada_mode.lua b/lua/ada_mode.lua index 557fcc4..d2e6c1d 100644 --- a/lua/ada_mode.lua +++ b/lua/ada_mode.lua @@ -30,19 +30,3 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, { pattern = { "*.adb", "*.ads" }, callback = leave_ada, }) - --- @name format_file --- @param --- @short Run gnatpp as formatter on the current file. -local function format_file() - vim.cmd("checktime %") - local write_cmd = "gnatpp " .. vim.api.nvim_buf_get_name(0) - os.execute(write_cmd) - vim.cmd("checktime %") -end - --- Add formatter command -vim.api.nvim_create_autocmd({ "BufWritePost" }, { - pattern = { "*.adb", "*.ads" }, - callback = format_file, -}) From 2d0a74ed8236b11d4c6874b529e8f07427e60f1c Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Mon, 31 Mar 2025 09:59:19 +0200 Subject: [PATCH 11/20] Change layout style of completion menu --- lua/code-completion.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/code-completion.lua b/lua/code-completion.lua index 6884290..c2179f9 100644 --- a/lua/code-completion.lua +++ b/lua/code-completion.lua @@ -108,9 +108,6 @@ cmp.setup.cmdline({ "/", "?" }, { -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). cmp.setup.cmdline(":", { - view = { - entries = { name = "wildmenu", separator = ":" }, - }, mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ { name = "path" }, From e26dfea84f9a5165aeb4348824e0534b41966ee7 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Mon, 31 Mar 2025 09:59:58 +0200 Subject: [PATCH 12/20] Add lazy lock to ignored files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bb0e74e..b340517 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ plugin/ spell/ ./mail_password ./lua/irc.lua +./lazy-lock.json From 12a3293ffffbff5f6fda765a6832401482fb6a33 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Mon, 31 Mar 2025 10:00:34 +0200 Subject: [PATCH 13/20] Remove lazy lock from repo --- lazy-lock.json | 51 -------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 lazy-lock.json diff --git a/lazy-lock.json b/lazy-lock.json deleted file mode 100644 index b2dc79b..0000000 --- a/lazy-lock.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "UltiSnips": { "branch": "master", "commit": "49dc8cb2086db19d385791c8e1635723b0fd95c7" }, - "barbar.nvim": { "branch": "master", "commit": "3c48b5edf61dda21ad41c514e53448fee366a824" }, - "bufstop": { "branch": "master", "commit": "274fc0e9fd6e8de860c427860c1e9970df142df5" }, - "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, - "cmp-calc": { "branch": "main", "commit": "ce91d14d2e7a8b3f6ad86d85e34d41c1ae6268d9" }, - "cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" }, - "cmp-cmdline-history": { "branch": "master", "commit": "003573b72d4635ce636234a826fa8c4ba2895ffe" }, - "cmp-fuzzy-buffer": { "branch": "main", "commit": "ada6352bc7e3c32471ab6c08f954001870329de1" }, - "cmp-git": { "branch": "main", "commit": "8d8993680d627c8f13bd85094eba84604107dbdd" }, - "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, - "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" }, - "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, - "cmp-nvim-ultisnips": { "branch": "main", "commit": "24bca5c3e137b28cd87442d4fc51a2b312dd99cc" }, - "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, - "cmp-spell": { "branch": "master", "commit": "32a0867efa59b43edbb2db67b0871cfad90c9b66" }, - "cyberspace.vim": { "branch": "master", "commit": "8d002ef6a449f08025d75249078ecae75a136a2d" }, - "formatter.nvim": { "branch": "master", "commit": "ad246d34ce7a32f752071ed81b09b94e6b127fad" }, - "fuzzy.nvim": { "branch": "master", "commit": "67a42ad2fa6d5ff41f0ef3cf69bb247410da5d7a" }, - "git-blame.nvim": { "branch": "master", "commit": "a0282d05adbee80aaf4e2ff35b81b52940b67bed" }, - "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, - "lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" }, - "lexima.vim": { "branch": "master", "commit": "5513d686801993b40c55baa65602f79cd3cf3c77" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "82c7cb08ddb836ad938b2708e50085f12a8825d2" }, - "mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" }, - "nerdtree": { "branch": "master", "commit": "f3a4d8eaa8ac10305e3d53851c976756ea9dc8e8" }, - "nerdtree-git-plugin": { "branch": "master", "commit": "e1fe727127a813095854a5b063c15e955a77eafb" }, - "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, - "nvim-cmp-lua-latex-symbols": { "branch": "master", "commit": "89345d6e333c700d13748e8a7ee6fe57279b7f88" }, - "nvim-dap": { "branch": "master", "commit": "c1695e500c7d552a0a19953a9aefcc89178fb1af" }, - "nvim-doxyscan": { "branch": "master", "commit": "2c266fdb9395d6afa5d7188f8212fd7757193990" }, - "nvim-lspconfig": { "branch": "master", "commit": "8c1831817d40925d22cd8a555296c44c02fdaaf5" }, - "nvim-sourcer": { "branch": "main", "commit": "a2f6bc737a63a208d39fcc5c211076ea5aa9f390" }, - "nvim-treesitter": { "branch": "master", "commit": "2014f8285e306f4c8a896c7d3af53fdd599e5a4f" }, - "nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" }, - "nvim-web-devicons": { "branch": "master", "commit": "cb0c967c9723a76ccb1be0cc3a9a10e577d2f6ec" }, - "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, - "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" }, - "telescope-ultisnips.nvim": { "branch": "main", "commit": "d1cca4b5aa809a90b7a8caddeb860329d5a8c2ff" }, - "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, - "tokyonight.nvim": { "branch": "main", "commit": "c025baf23b62f044eff1f4ef561c45de636f0e32" }, - "vim-airline": { "branch": "master", "commit": "d9f42cb46710e31962a9609939ddfeb0685dd779" }, - "vim-airline-themes": { "branch": "master", "commit": "a9aa25ce323b2dd04a52706f4d1b044f4feb7617" }, - "vim-devicons": { "branch": "master", "commit": "71f239af28b7214eebb60d4ea5bd040291fb7e33" }, - "vim-monokai-tasty": { "branch": "master", "commit": "57c67feac63158a232c43aee2f463a994029b699" }, - "vim-speeddating": { "branch": "master", "commit": "5a36fd29df63ea3f65562bd2bb837be48a5ec90b" }, - "vim-startify": { "branch": "master", "commit": "4e089dffdad46f3f5593f34362d530e8fe823dcf" }, - "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" }, - "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, - "vim-visual-multi": { "branch": "master", "commit": "fe1ec7e430013b83c8c2dee85ae496251b71e253" } -} \ No newline at end of file From 1234f9bd4c5b9593ba804d6d34ba20eda908f2ad Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Wed, 21 May 2025 18:48:17 +0200 Subject: [PATCH 14/20] Update --- UltiSnips/python.snippets | 6 ++-- UltiSnips/verilog.snippets | 4 +++ lua/irc_client.lua | 11 +++++++ lua/linterconfiguration.lua | 10 +++--- lua/lspconfiguration.lua | 64 ++++++++++++++++++------------------ lua/plugconfig.lua | 5 +-- lua/plugins.lua | 1 - lua/screenkeyconfig.lua | 65 ------------------------------------- 8 files changed, 57 insertions(+), 109 deletions(-) create mode 100644 lua/irc_client.lua delete mode 100644 lua/screenkeyconfig.lua diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 42f1c8a..1d4c2da 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -35,12 +35,12 @@ for param in params: snip.rv += f"\t\t@param {param}\n" ` Returns: - $4 + @return $4 """ $5 `!p -if t[4] != "": - snip.rv = f"\n return {t[4]}"` +if t[4] != "" and len(t[4].split(":")) > 1: + snip.rv = f"return {t[4].split(':')[0]}"` $0 endsnippet diff --git a/UltiSnips/verilog.snippets b/UltiSnips/verilog.snippets index 4165836..8dd98fb 100644 --- a/UltiSnips/verilog.snippets +++ b/UltiSnips/verilog.snippets @@ -61,3 +61,7 @@ snippet def "Definition/Constant" b \`define ${1:NAME} ${2:VALUE} $0 endsnippet + +snippet filename "Get Filename" b +// `pwd`/`!p snip.rv = fn` +endsnippet diff --git a/lua/irc_client.lua b/lua/irc_client.lua new file mode 100644 index 0000000..0415578 --- /dev/null +++ b/lua/irc_client.lua @@ -0,0 +1,11 @@ +require("irc").setup({ + servers = { + libera = { + nick = "ninachloe", + username = "ninachloe", + server = "irc.libera.chat", + port = 6667, + use_ssl = false, + }, + }, +}) diff --git a/lua/linterconfiguration.lua b/lua/linterconfiguration.lua index 82eba98..677dd5e 100644 --- a/lua/linterconfiguration.lua +++ b/lua/linterconfiguration.lua @@ -12,9 +12,7 @@ local linters = { ada = { "gnat", "gcc", "adals", "cspell" }, } -vim.g.ale_linters = linters -vim.g.ale_fix_on_save = 0 -vim.g.ale_fixers = { +local fixers = { ada = { "gnatpp" }, asm = { "gcc" }, bash = { "bashate" }, @@ -28,5 +26,9 @@ vim.g.ale_fixers = { haskell = { "fourmolu" }, } +vim.g.ale_linters = linters +vim.g.ale_fix_on_save = 0 +vim.g.ale_fixers = fixers + vim.keymap.set("n", "lf", ":ALEFix") -vim.keymap.set("n", "ld", ":ALEDetail") +vim.keymap.set("n", "lp", ":ALEFindReferences") diff --git a/lua/lspconfiguration.lua b/lua/lspconfiguration.lua index e68cf8c..01ba3d8 100644 --- a/lua/lspconfiguration.lua +++ b/lua/lspconfiguration.lua @@ -15,38 +15,38 @@ require("mason-lspconfig").setup({ }, }) -require("mason-lspconfig").setup_handlers({ - function(asm_lsp) - require("lspconfig")[asm_lsp].setup({}) - end, - function(clangd) - require("lspconfig")[clangd].setup({}) - end, - function(lua_ls) - require("lspconfig")[lua_ls].setup({}) - end, - function(hls) - require("lspconfig")[hls].setup({}) - end, - function(rust_analyzer) - require("lspconfig")[rust_analyzer].setup({}) - end, - function(vhdl_ls) - require("lspconfig")[vhdl_ls].setup({}) - end, - function(verible) - require("lspconfig")[verible].setup({}) - end, - function(vimls) - require("lspconfig")[vimls].setup({}) - end, - function(texlab) - require("lspconfig")[texlab].setup({}) - end, - function(als) - require("lspconfig")[als].setup({}) - end, -}) +-- require("mason-lspconfig").setup_handlers({ +-- function(asm_lsp) +-- require("lspconfig")[asm_lsp].setup({}) +-- end, +-- function(clangd) +-- require("lspconfig")[clangd].setup({}) +-- end, +-- function(lua_ls) +-- require("lspconfig")[lua_ls].setup({}) +-- end, +-- function(hls) +-- require("lspconfig")[hls].setup({}) +-- end, +-- function(rust_analyzer) +-- require("lspconfig")[rust_analyzer].setup({}) +-- end, +-- function(vhdl_ls) +-- require("lspconfig")[vhdl_ls].setup({}) +-- end, +-- function(verible) +-- require("lspconfig")[verible].setup({}) +-- end, +-- function(vimls) +-- require("lspconfig")[vimls].setup({}) +-- end, +-- function(texlab) +-- require("lspconfig")[texlab].setup({}) +-- end, +-- function(als) +-- require("lspconfig")[als].setup({}) +-- end, +-- }) require("lspconfig").verible.setup({ cmd = { "verible-verilog-ls", "--rules_config_search" }, diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 0313007..7152507 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -29,7 +29,7 @@ require("ada_mode") -- require("mail") -- IRC configuration -require("irc_client") +-- require("irc_client") -- Misc configuration if vim == nil then @@ -56,9 +56,6 @@ vim.g.gitblame_date_format = "%r" -- Floating terminal vim.keymap.set("n", "", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal ") --- Key plugin -require("screenkeyconfig") - -- Set default colorscheme -- vim.cmd("colo vim-monokai-tasty") vim.cmd("colo vim-monokai-tasty") diff --git a/lua/plugins.lua b/lua/plugins.lua index bda1a0d..aa22564 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -57,7 +57,6 @@ return { "dense-analysis/ale", "f-person/git-blame.nvim", "dstein64/vim-startuptime", - "NStefan002/screenkey.nvim", "hiphish/rainbow-delimiters.nvim", -- Themes diff --git a/lua/screenkeyconfig.lua b/lua/screenkeyconfig.lua deleted file mode 100644 index 47659fb..0000000 --- a/lua/screenkeyconfig.lua +++ /dev/null @@ -1,65 +0,0 @@ -require("screenkey").setup({ - win_opts = { - row = vim.o.lines - vim.o.cmdheight - 1, - col = vim.o.columns - 1, - relative = "editor", - anchor = "SE", - width = 40, - height = 3, - border = "single", - title = "Screenkey", - title_pos = "center", - style = "minimal", - focusable = false, - noautocmd = true, - }, - compress_after = 3, - clear_after = 3, - disable = { - filetypes = {}, - buftypes = {}, - events = false, - }, - show_leader = true, - group_mappings = false, - display_infront = {}, - display_behind = {}, - filter = function(keys) - return keys - end, - keys = { - [""] = "󰌒", - [""] = "󰌑", - [""] = "Esc", - [""] = "␣", - [""] = "󰌥", - [""] = "Del", - [""] = "", - [""] = "", - [""] = "", - [""] = "", - [""] = "Home", - [""] = "End", - [""] = "PgUp", - [""] = "PgDn", - [""] = "Ins", - [""] = "󱊫", - [""] = "󱊬", - [""] = "󱊭", - [""] = "󱊮", - [""] = "󱊯", - [""] = "󱊰", - [""] = "󱊱", - [""] = "󱊲", - [""] = "󱊳", - [""] = "󱊴", - [""] = "󱊵", - [""] = "󱊶", - ["CTRL"] = "Ctrl", - ["ALT"] = "Alt", - ["SUPER"] = "󰘳", - [""] = "", - }, -}) - -vim.keymap.set("n", "kk", ":Screenkey") From 730ec3b4bda7a63deed93291cc36f9c6d2dbdddd Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Wed, 21 May 2025 22:36:30 +0200 Subject: [PATCH 15/20] Change default from rel to abs number --- lua/vanilla.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/vanilla.lua b/lua/vanilla.lua index 85ff75a..6029ac4 100644 --- a/lua/vanilla.lua +++ b/lua/vanilla.lua @@ -16,7 +16,7 @@ vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.splitright = true vim.opt.splitbelow = true -vim.opt.relativenumber = true +vim.opt.relativenumber = false vim.g.mapleader = "," vim.cmd("set clipboard+=unnamedplus") vim.cmd("autocmd! CursorHold,CursorHoldI *.md write") From 742e6f614a315dd8fbbcd0de21a42070b1e83664 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Thu, 22 May 2025 08:44:07 +0200 Subject: [PATCH 16/20] Remove unused features from config --- lua/irc_client.lua | 11 ----------- lua/mail.lua | 35 ----------------------------------- lua/plugconfig.lua | 6 ------ lua/plugins.lua | 4 ---- mail_password.gpg | 15 --------------- 5 files changed, 71 deletions(-) delete mode 100644 lua/irc_client.lua delete mode 100644 lua/mail.lua delete mode 100644 mail_password.gpg diff --git a/lua/irc_client.lua b/lua/irc_client.lua deleted file mode 100644 index 0415578..0000000 --- a/lua/irc_client.lua +++ /dev/null @@ -1,11 +0,0 @@ -require("irc").setup({ - servers = { - libera = { - nick = "ninachloe", - username = "ninachloe", - server = "irc.libera.chat", - port = 6667, - use_ssl = false, - }, - }, -}) diff --git a/lua/mail.lua b/lua/mail.lua deleted file mode 100644 index ee266b6..0000000 --- a/lua/mail.lua +++ /dev/null @@ -1,35 +0,0 @@ -vim.g.iris_name = "Nina Chloé Kassandra Reiß" -vim.g.iris_mail = "nina.reiss@nickr.eu" - -local cmd = io.popen("whoami") -local get_lua_configuration_directory - -if cmd == nil then - get_lua_configuration_directory = "root" -else - get_lua_configuration_directory = cmd:read("*a") - cmd:close() -end - -local directory_path -if get_lua_configuration_directory == "root" then - directory_path = "/root/.config/nvim" -else - directory_path = "/home/" .. get_lua_configuration_directory .. "/.config/nvim" -end - -vim.g.iris_imap_host = "mail.nickr.eu" -vim.g.iris_imap_port = 143 -vim.g.iris_imap_login = "yannick.reiss@nickr.eu" -vim.g.iris_imap_passwd_filepath = directory_path .. "mail_password.gpg" - -vim.g.iris_smtp_host = "smtp.nickr.eu" -vim.g.iris_smtp_port = 587 -vim.g.iris_smtp_login = "yannick.reiss@nickr.eu" -vim.g.iris_smtp_passwd_filepath = directory_path .. "mail_password.gpg" - --- specify mail configuration -vim.g.iris_idle_enabled = 0 -vim.g.iris_idle_timeout = 300 -vim.g.iris_emails_chunk_size = 25 -vim.g.iris_download_dir = "~/Downloads" diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 7152507..fd31596 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -25,12 +25,6 @@ require("pascal_mode") -- Ada mode (supported by plugins) require("ada_mode") --- Mail configuration --- require("mail") - --- IRC configuration --- require("irc_client") - -- Misc configuration if vim == nil then vim = {} diff --git a/lua/plugins.lua b/lua/plugins.lua index aa22564..2a0877c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -91,8 +91,4 @@ return { -- Plugins to test "https://git.nickr.eu/yannickreiss/nvim-macrotool.git", - - -- Message clients and office setup - "soywod/iris.vim", - { "shadmansaleh/IRC.nvim", rocks = "openssl" }, } diff --git a/mail_password.gpg b/mail_password.gpg deleted file mode 100644 index 0bfc39f..0000000 --- a/mail_password.gpg +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN PGP MESSAGE----- - -hF4D7SdwCs0TtR8SAQdAnK7+vhdEeHAQMkTbfuC9F4DuPtbNff2CGXMcFuv1k3Yw -Tj/wXDP1IV5mJdGVCH3PAbZme+UX4jybW934fIo8je109OIyAPra4bn75S1A4klb -1MDjAQkCEBd5WJKvyyF8NwmavnF7JMHOl9pzuo26BwakfmWhJaTH3Wt5YDkk94C8 -ebqCJB7ER2Yqbos2/Ln8h2f7E20qKaWe2oWklJZTnSGiwcs0CKs3rgRkOP84glP+ -+SH/L5Epu6APawedrW+Sm2o7HZF0/reZMFB10gqDSMW19VuzRhmPDejldco37ME5 -cd9WVeRNXv7LlSjU1JIcgm6M5FFNsDBFw1Gz4RGic3flN4yulWQx5GgPWU1ePpml -+AUzZGSpgmWB6pMvZrlf+HaQMc3zUoNRdSyB78SiCJcl+9iDpprCMxsgi43DFB6p -ipjQxvXOKT3kko2DW8gcr03VDMQ9P3Pz7E/GSzUlsaOkOCL+/xed+y23IYuOVlt6 -cHRhrY7nSPpTLuaP/gABJPQLLrUnldSf6LK6hp66SLn5igMfklL6zvDNVPzkz+wT -B6nyxD2sEuj/KklhsR3YESJK9QhySq3llgMhOM7m9cFt0+X/rOgROvpwkVApVpDS -ymjfPtZo56XvHO+uv8vdt8nk06NySTcfXorTOGgxYlKRmX9OMRU= -=pKVC ------END PGP MESSAGE----- From d79f1fd6d4480e5fe3ea66db278a6d47fdbd3cdf Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Wed, 11 Jun 2025 14:43:13 +0200 Subject: [PATCH 17/20] Ada mode update --- UltiSnips/ada.snippets | 9 +++++---- UltiSnips/python.snippets | 4 ++-- lua/plugconfig.lua | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/UltiSnips/ada.snippets b/UltiSnips/ada.snippets index 0fb6aa1..dbd24bd 100644 --- a/UltiSnips/ada.snippets +++ b/UltiSnips/ada.snippets @@ -95,7 +95,7 @@ else: for variable in variables: if not variable == "" and not variable.startswith("typ"): variableless = variable.replace("\t", "").replace (" ", "") - snip.rv += f"-- @variable {variableless}\n" + snip.rv += f"\t-- @variable {variableless}\n" `-- @description $4 procedure ${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 ")"` is $3 @@ -129,7 +129,7 @@ for parameter in parameters: for parameter in parameter_list: if not parameter == "" and not parameter.startswith("typ"): parameterless = parameter.replace("\t", "") - snip.rv += f"-- @parameter {parameterless}\n" + snip.rv += f"\t-- @parameter {parameterless}\n" ``!p snip.rv = "" if t[4].startswith("l"): @@ -139,7 +139,7 @@ else: for variable in variables: if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"): variableless = variable.replace("\t", "").replace (" ", "") - snip.rv += f"-- @variable {variableless}\n" + snip.rv += f"\t-- @variable {variableless}\n" ` -- @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 @@ -187,7 +187,8 @@ if t[6] == "y": endsnippet snippet package "Create package configuration" b -package ${1:body }${2:`!p snip.rv = fn.split('.')[0]`} is +package ${1:body }${2:`!p package_name = fn.split('.')[0] +snip.rv = package_name[0].upper() + package_name[1:]`} is $0 end $2; endsnippet diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 1d4c2da..6f60d6f 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -11,7 +11,7 @@ if __name__ == "__main__": $0 endsnippet -snippet docmodule "Documentation for modules" A +snippet docmodule "Documentation for modules" """ File: `!p snip.rv = fn` Author: ${1:Yannick Reiß} @@ -21,7 +21,7 @@ Description: ${2:No further description} $0 endsnippet -snippet def "Python Function" A +snippet def "Python Function" def ${1:function}(${2}): """ @name $1 diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index fd31596..d9e5c27 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -32,7 +32,7 @@ end -- Update function and call function Update_Sys() - vim.cmd("TSUpdate") + --vim.cmd("TSUpdate") vim.cmd("MasonUpdate") vim.cmd("Lazy sync") end From 41ec16380bc5d9a38235f07c462e28f4dff4ef8c Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sat, 14 Jun 2025 23:23:28 +0200 Subject: [PATCH 18/20] Add function to prove ada/Spark code --- UltiSnips/markdown.snippets | 14 ++++++++++++++ lua/ada_mode.lua | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/UltiSnips/markdown.snippets b/UltiSnips/markdown.snippets index 20194f5..881575e 100644 --- a/UltiSnips/markdown.snippets +++ b/UltiSnips/markdown.snippets @@ -52,3 +52,17 @@ endsnippet snippet ,m "Math equation" A \$$1\$ $0 endsnippet + +snippet bookshelf "Tagline for bookshelf" b +`!p +if t[1] != "": + snip.rv = "[CW: " +else: + snip.rv = ""`$1`!p +if t[1] != "": + snip.rv = "]" +else: + snip.rv = ""` +${2:Title} by ${3:Author} +${4:Description} +endsnippet diff --git a/lua/ada_mode.lua b/lua/ada_mode.lua index d2e6c1d..4ed63c0 100644 --- a/lua/ada_mode.lua +++ b/lua/ada_mode.lua @@ -3,11 +3,22 @@ if vim == nil then local vim = {} end +-- @name Prove +-- @param +-- @short Run gnatprove +function Prove() + vim.cmd("new") + local run_cmd = { "alr gnatprove" } + vim.api.nvim_buf_set_lines(0, 0, -1, false, run_cmd) + vim.cmd(":%!bash") +end + -- @name setup_ada -- @param -- @short Verify installation of ada tools or install them. local function setup_ada() vim.keymap.set("n", "cb", ":!gnatpp %") + vim.keymap.set("n", "pp", ":lua Prove()") vim.opt.tabstop = 3 vim.opt.shiftwidth = 3 end From 5ee0540a2e0670f845ef0cf1e08ddf8788779ab8 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 15 Jun 2025 14:53:46 +0200 Subject: [PATCH 19/20] Prove framework --- lua/ada_mode.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/ada_mode.lua b/lua/ada_mode.lua index 4ed63c0..84f3fc7 100644 --- a/lua/ada_mode.lua +++ b/lua/ada_mode.lua @@ -11,8 +11,19 @@ function Prove() local run_cmd = { "alr gnatprove" } vim.api.nvim_buf_set_lines(0, 0, -1, false, run_cmd) vim.cmd(":%!bash") + + buffer_loaded = true end +function Close_Prove() + if buffer_loaded then + buffer_loaded = false + vim.cmd("bd!") + end +end + +vim.keymap.set("n", "pp", ":lua Close_Prove()") + -- @name setup_ada -- @param -- @short Verify installation of ada tools or install them. From 7daedc0b31d26e0dbff727dc9c9405778ec7e992 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 24 Jun 2025 09:13:12 +0200 Subject: [PATCH 20/20] Ada proofs --- lua/ada_mode.lua | 15 ++++++++++++++- lua/plugins.lua | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/lua/ada_mode.lua b/lua/ada_mode.lua index 84f3fc7..8987af0 100644 --- a/lua/ada_mode.lua +++ b/lua/ada_mode.lua @@ -15,6 +15,18 @@ function Prove() buffer_loaded = true end +-- @name Run +-- @param +-- @short Run program using alire +function Run() + vim.cmd("new") + local run_cmd = { "alr run" } + vim.api.nvim_buf_set_lines(0, 0, -1, false, run_cmd) + vim.cmd(":%!bash") + + buffer_loaded = true +end + function Close_Prove() if buffer_loaded then buffer_loaded = false @@ -23,13 +35,14 @@ function Close_Prove() end vim.keymap.set("n", "pp", ":lua Close_Prove()") +vim.keymap.set("n", "pp", ":lua Prove()") +vim.keymap.set("n", "op", ":lua Run()") -- @name setup_ada -- @param -- @short Verify installation of ada tools or install them. local function setup_ada() vim.keymap.set("n", "cb", ":!gnatpp %") - vim.keymap.set("n", "pp", ":lua Prove()") vim.opt.tabstop = 3 vim.opt.shiftwidth = 3 end diff --git a/lua/plugins.lua b/lua/plugins.lua index 2a0877c..3200924 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -91,4 +91,23 @@ return { -- Plugins to test "https://git.nickr.eu/yannickreiss/nvim-macrotool.git", + + -- Wiki + { + "echaya/neowiki.nvim", + opts = { + wiki_dirs = { + -- neowiki.nvim supports both absolute and relative paths + { name = "Personal", path = "~/.wiki" }, + { name = "RiscVar", path = "~/Documents/HSRM/riscvar.wiki" }, + { name = "Ada/Spark", path = "~/Documents/Science/ada_spark_wiki" }, + { name = "FPGA Book", path = "~/Documents/Science/FPGA_Design" }, + }, + }, + keys = { + { "ww", "lua require('neowiki').open_wiki()", desc = "Open Wiki" }, + { "wW", "lua require('neowiki').open_wiki_floating()", desc = "Open Floating Wiki" }, + { "wT", "lua require('neowiki').open_wiki_new_tab()", desc = "Open Wiki in Tab" }, + }, + }, }