From 080765c8668b10cedc9ca5c97cf31148bf0d7048 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 14 Jul 2023 20:50:00 +0200 Subject: [PATCH 1/4] README formatting and testing of new gpg key --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 479db38..431d5d2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # configs -This repository contains most of the configs I use on my systems, this is all for Linux -systems, be it servers or workstations. To install it, just run the desktop/server script as the -target user, some stuff will need to run as root. +This repository contains most of the configs I use on my systems, this is all +for Linux systems, be it servers or workstations. To install it, just run the +desktop/server script as the target user, some stuff will need to run as root. # Dependencies - vim @@ -14,9 +14,10 @@ target user, some stuff will need to run as root. - lsd (workstations) - nodejs (nvim language server) + # Mirrored The origin of this repository is [git.cscherr.de](https://git.cscherr.de/PlexSheep/configs.git) It is mirrored to: -- [github](https://github.com/PlexSheep/configs) -- [codeberg](https://codeberg.org/PlexSheep/configs) \ No newline at end of file +- [GitHub](https://github.com/PlexSheep/configs) +- [Codeberg](https://codeberg.org/PlexSheep/configs) From daf765a66da8c9248a76516f29cf73258d3ef913 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 14 Jul 2023 21:24:57 +0200 Subject: [PATCH 2/4] test gpg --- test | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test diff --git a/test b/test new file mode 100644 index 0000000..e69de29 From c0643621638f99505a08607e191506f0df93b7b6 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 15 Jul 2023 14:15:50 +0200 Subject: [PATCH 3/4] fix Coc completion with autopairs --- home/.config/nvim/autopairs.vim | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/home/.config/nvim/autopairs.vim b/home/.config/nvim/autopairs.vim index a3cf6c5..fd0cda6 100644 --- a/home/.config/nvim/autopairs.vim +++ b/home/.config/nvim/autopairs.vim @@ -10,6 +10,31 @@ inoremap coc#pum#visible() ? coc#pum#confirm() : lua << EOF require("nvim-autopairs").setup {} local Rule = require('nvim-autopairs.rule') +local remap = vim.api.nvim_set_keymap local npairs = require('nvim-autopairs') -npairs.add_rule(Rule("<>","<>","rs")) +npairs.setup({map_cr=false}) + +-- skip it, if you use another global object +_G.MUtils= {} + +-- old version +-- MUtils.completion_confirm=function() + -- if vim.fn["coc#pum#visible"]() ~= 0 then + -- return vim.fn["coc#_select_confirm"]() + -- else + -- return npairs.autopairs_cr() + -- end +-- end + +-- new version for custom pum +MUtils.completion_confirm=function() + if vim.fn["coc#pum#visible"]() ~= 0 then + return vim.fn["coc#pum#confirm"]() + else + return npairs.autopairs_cr() + end +end + +remap('i' , '','v:lua.MUtils.completion_confirm()', {expr = true , noremap = true}) + EOF From 27b64961edcad3d40259bdfb59cdaf4ab019bdb9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 15 Jul 2023 16:12:29 +0200 Subject: [PATCH 4/4] test gpg sign Signed-off-by: PlexSheep --- test | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test diff --git a/test b/test deleted file mode 100644 index e69de29..0000000