From 67ad37bd97ca7b43c561e1bcc4bc79c53c89e8f2 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Sun, 7 Jan 2024 14:37:20 -0300 Subject: [PATCH] remove bufferline and add ghost text --- lua/custom/plugins/bufferline.lua | 15 --------------- lua/custom/plugins/cmp.lua | 4 ++++ lua/custom/plugins/init.lua | 5 ----- lua/custom/plugins/live-server.lua | 13 ------------- lua/jabuxas/remap.lua | 3 +++ 5 files changed, 7 insertions(+), 33 deletions(-) delete mode 100644 lua/custom/plugins/bufferline.lua delete mode 100644 lua/custom/plugins/init.lua delete mode 100644 lua/custom/plugins/live-server.lua diff --git a/lua/custom/plugins/bufferline.lua b/lua/custom/plugins/bufferline.lua deleted file mode 100644 index f04857f..0000000 --- a/lua/custom/plugins/bufferline.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - 'akinsho/bufferline.nvim', - version = "*", - dependencies = 'nvim-tree/nvim-web-devicons', - opts = { - options = { - mode = "tabs" - } - }, - config = function() - vim.keymap.set("n", "", "bnext", { desc = "Go to next Buffer" }) - vim.keymap.set("n", "", "bprev", { desc = "Go to previous Buffer" }) - vim.keymap.set("n", "", "bdelete", { desc = "Delete current buffer" }) - end -} diff --git a/lua/custom/plugins/cmp.lua b/lua/custom/plugins/cmp.lua index 011e235..1e2707c 100644 --- a/lua/custom/plugins/cmp.lua +++ b/lua/custom/plugins/cmp.lua @@ -145,6 +145,10 @@ return { completion = cmp.config.window.bordered(winhighlight), documentation = cmp.config.window.bordered(winhighlight), }, + + experimental = { + ghost_text = true, + }, } local cmp_autopairs = require('nvim-autopairs.completion.cmp') diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua deleted file mode 100644 index be0eb9d..0000000 --- a/lua/custom/plugins/init.lua +++ /dev/null @@ -1,5 +0,0 @@ --- You can add your own plugins here or in other files in this directory! --- I promise not to create any merge conflicts in this directory :) --- --- See the kickstart.nvim README for more information -return {} diff --git a/lua/custom/plugins/live-server.lua b/lua/custom/plugins/live-server.lua deleted file mode 100644 index 5e56f16..0000000 --- a/lua/custom/plugins/live-server.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "aurum77/live-server.nvim", - opts = {}, - cmd = { - "LiveServer", - "LiveServerStart", - "LiveServerStop", - "LiveServerInstall", - }, - build = function() - require("live_server.util").install() - end, -} diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index cb1c00f..ae1c34e 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -50,3 +50,6 @@ keymap.set("n", "", "-") keymap.set("n", "gsj", "GoTagAdd json ", { desc = "Add json struct tags" }) keymap.set("n", "gsy", "GoTagAdd yaml ", { desc = "Add yaml struct tags" }) +keymap.set("n", "", "bnext", { desc = "Go to next Buffer" }) +keymap.set("n", "", "bprev", { desc = "Go to previous Buffer" }) +keymap.set("n", "", "bdelete", { desc = "Delete current buffer" })