From 3734a803dc6cd13305e66e4d69d33c25ce39aeff Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 10 Dec 2023 12:33:33 +0100 Subject: [PATCH] trying to extend functionality --- init.lua | 2 ++ lazy-lock.json | 8 ++++---- lua/confformat.lua | 2 +- lua/plugbench.lua | 31 +++++++++++++++++++++++++++++++ spell/en.utf-8.add | 6 ++++++ spell/en.utf-8.add.spl | Bin 1700 -> 1770 bytes 6 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 lua/plugbench.lua diff --git a/init.lua b/init.lua index 4425270..291003f 100644 --- a/init.lua +++ b/init.lua @@ -23,3 +23,5 @@ require("plugconfig") require("confformat") vim.cmd("source ~/.config/nvim/viml/plugconfig.vim") + +local plugtestbench = require("plugbench") diff --git a/lazy-lock.json b/lazy-lock.json index 74da08a..4428f4a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -22,12 +22,12 @@ "nerdtree-git-plugin": { "branch": "master", "commit": "e1fe727127a813095854a5b063c15e955a77eafb" }, "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, "nvim-cmp-lua-latex-symbols": { "branch": "master", "commit": "89345d6e333c700d13748e8a7ee6fe57279b7f88" }, - "nvim-dap": { "branch": "master", "commit": "d7749eb3d9933a75d2244820308ce442f646c7ae" }, + "nvim-dap": { "branch": "master", "commit": "bbe2c6f3438542a37cc2141a8e385f7dfe07d87d" }, "nvim-doxyscan": { "branch": "master", "commit": "2c266fdb9395d6afa5d7188f8212fd7757193990" }, - "nvim-lspconfig": { "branch": "master", "commit": "511609ae0311abfcfaed3c398429a147e895ce2c" }, - "nvim-treesitter": { "branch": "master", "commit": "180e1ca385442e35e1d18420221a148c5e045671" }, + "nvim-lspconfig": { "branch": "master", "commit": "bd405e45c5fb122c16af8f87fa2dd7ab1981b243" }, + "nvim-treesitter": { "branch": "master", "commit": "b6b9ca448b7f236e2e60f8393a729902511f9db9" }, "nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" }, - "nvim-web-devicons": { "branch": "master", "commit": "5efb8bd06841f91f97c90e16de85e96d57e9c862" }, + "nvim-web-devicons": { "branch": "master", "commit": "8b2e5ef9eb8a717221bd96cb8422686d65a09ed5" }, "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, "telescope-ultisnips.nvim": { "branch": "main", "commit": "f48b6d4f53b31507d3fd514905c6940409e8ada8" }, "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, diff --git a/lua/confformat.lua b/lua/confformat.lua index 0bb0307..7de759c 100644 --- a/lua/confformat.lua +++ b/lua/confformat.lua @@ -18,7 +18,7 @@ require("formatter").setup({ }, c = { - require("formatter.filetypes.c").clangformat, + require("formatter.filetypes.c").astyle, }, cpp = { diff --git a/lua/plugbench.lua b/lua/plugbench.lua new file mode 100644 index 0000000..2107eca --- /dev/null +++ b/lua/plugbench.lua @@ -0,0 +1,31 @@ +local M = {} + +-- Delete area in between the current and next occurrence of the current symbol under cursor. +-- use builtin functionality for opening brackets +function M.Delete_interval() + -- TODO: Think of something +end + +-- resize current window using control + 7,8,9,0 +function M.Resize_Current_Window(change_width, change_height) + local width = vim.api.nvim_win_get_width(0) + local height = vim.api.nvim_win_get_height(0) + + if width + change_width > 5 then + vim.api.nvim_win_set_width(0, width + change_width) + end + + if height + change_height > 5 then + vim.api.nvim_win_set_height(0, height + change_height) + end +end + +-- Keybindings +-- 7/8 change width +-- 9/0 change height +--vim.keymap.set("n", "", Resize_Current_Window(-1, 0)) +--vim.keymap.set("n", "", Resize_Current_Window(1, 0)) +--vim.keymap.set("n", "", Resize_Current_Window(0, -1)) +--vim.keymap.set("n", "", Resize_Current_Window(0, 1)) + +return M diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 9c0890a..2a9b9f7 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -127,3 +127,9 @@ intel Calma's nsf Vec +plugconfig +folke +viml +config +confformat +plugbench diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 27bb3c1622211bfce0c69a4c70b70d23fdcccee2..e3b93b45ecaaa8d6ceccd7750da0babf123f8d09 100644 GIT binary patch delta 595 zcmX9*J!=$E6rFQt7h{otgy1d%HY#Z(;szmLwKma03k9*Aot@o%?0hlvCSyPlf5P$_ zMZ{)FA?bwtfixnLf1r)nSc!i?&wV!UzI)EQ_nvd#dh^%j*0YC?nkvn*(cd5lzpS?2 zJl)ujlN3R4Ju7Pq5oE{_V;97_1|_o!hG?qDs79mlz@orRW`+-HUqCRjN=5V4w|j7I zi1&l8)IupNJCgdD8`(KbM#@V(j|zWM^C{=B9ccRIozk z)Mc`V&b^ac_~AawjqTq@upDRf)ml~JtwXrCeJR!<$#h||nqrCnapQ33)z?Dr?A>B6 zlY|BfB!q%!L07b=_Y-w!eXeWK!A52+=afo!9l?xcYE<*Qmm1qjY@lj!IhW=fjRah* z(jRCv2{jAcS$O5@bJJgz6`2bz{}^|$@1MEv;c)l%RO)jvt@eqI6kjJeqZmt%1^45B zq;uDLgF$E6*viDxU`#nnPjY>ad-u7dRqyb@M=P;fNwE08qmzOfjkk%HMp6^1!lZsd bP|cv$zcs2@hmTYOPIDLahj{(zZokAo0Lp-` delta 553 zcmXw0F>4e-6yERMo+%{hf;q1cG!P3D@PZgfr-E1nAw^1MvbWg`w|Bej&P@_56#qa- z2EoFRCjUSPlENl!8to+iASqH=Sn2onkY(oWeBZqHzW2@5^vU$h#;diuO!K_=H;P(c z4rV?-omw_YiYR)JR}Lb`F@(Va2>BWXPbDnTRFPhVTH}g4__K<`@B~M%eW9$39Mees z7-Fx9C6fzOOwY-T_*pJ3n@PgZtuSUagU#l8j*JnD;i0V0E|!WN_H|z=;e^bmurEvS z;k!J-MYxvv**J=L8aKE+m{+7`ONq^f`R6zLBU?36`?dedCi~rwL57=yi zjGEE4m6feAD>s+?4mIXTc*-@&598Fju^5X+-|wN+=cpy3c}gFn4mYjNofoz}C`uw{ zG{#1RdG2yM!6{|A#-wcGwhwRPxjFARpOa0;NepES8j?os z$IocT&-mr@;Kb+%3AX>6+|8)YVoN(@7HLbRCDkr5odR$4Y1Fxdr>N(HX?O79>$`S= Ee>O^X+W-In