From 4cc65a0302befddaaefa984b279e23bd0a52c317 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Mon, 5 Jun 2023 22:43:53 +0300 Subject: [PATCH 1/6] fix mason.nvim configuration --- lua/config/mason-lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/config/mason-lspconfig.lua b/lua/config/mason-lspconfig.lua index d96aeac..871bd2e 100644 --- a/lua/config/mason-lspconfig.lua +++ b/lua/config/mason-lspconfig.lua @@ -14,6 +14,7 @@ local function get_options(server_name) } end +require("mason").setup() require("mason-lspconfig").setup() require("mason-lspconfig").setup_handlers{ function (server_name) -- default handler (optional) From 224ead3156ce837fe017c8dee624f87c8500b511 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Mon, 5 Jun 2023 22:44:11 +0300 Subject: [PATCH 2/6] dont use deprecated function --- lua/personal/cmacro-align.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/personal/cmacro-align.lua b/lua/personal/cmacro-align.lua index ddc05df..be2ea43 100644 --- a/lua/personal/cmacro-align.lua +++ b/lua/personal/cmacro-align.lua @@ -1,5 +1,5 @@ local ts = vim.treesitter -local query = ts.parse_query("c", [[ +local query = ts.query.parse("c", [[ (preproc_function_def value: (preproc_arg) @macro_def) (preproc_def value: (preproc_arg) @macro_def) ]]) From e4155b9fa4d9d9b10d4900e224313747cd59f22b Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 12 Jul 2023 21:10:00 +0300 Subject: [PATCH 3/6] add navbuddy --- lua/config/navbuddy.lua | 33 +++++++++++++++++++++++++++++++++ lua/plugins.lua | 1 + 2 files changed, 34 insertions(+) create mode 100644 lua/config/navbuddy.lua diff --git a/lua/config/navbuddy.lua b/lua/config/navbuddy.lua new file mode 100644 index 0000000..b3970dd --- /dev/null +++ b/lua/config/navbuddy.lua @@ -0,0 +1,33 @@ +return { + "SmiteshP/nvim-navbuddy", + requires = { + "neovim/nvim-lspconfig", + "SmiteshP/nvim-navic", + "MunifTanjim/nui.nvim", + "nvim-telescope/telescope.nvim" + }, + + config = function() + local navbuddy = require("nvim-navbuddy") + + require("legendary").keymaps{ + {"o", ":Navbuddy", description="Navbuddy"} + } + + navbuddy.setup { + window = { + border = "rounded", + size = "60%", + position = "50%", + sections = { + left = { size = "20%" }, + mid = { size = "40%" }, + right = { preview = "leaf" } + }, + }, + node_markers = { enabled = true }, + use_default_mappings = true, + lsp = { auto_attach = true } + } + end +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 72c1935..8df7532 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -33,6 +33,7 @@ return function(use) use_config "diffview" use_config "git-conflict" use_config "doxygen-tk" + use_config "navbuddy" -- use_config "ufo" use { From bcc1335c3e9c16a5c13ab73c34d840ae811272f0 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 12 Jul 2023 21:21:27 +0300 Subject: [PATCH 4/6] add escape.nvim --- init.lua | 2 ++ lua/config/escape.lua | 10 ++++++++++ lua/plugins.lua | 1 + 3 files changed, 13 insertions(+) create mode 100644 lua/config/escape.lua diff --git a/init.lua b/init.lua index 92deaba..9ea110d 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,7 @@ local cmd = vim.cmd +table.unpack = unpack + -- Allow loading */init.lua files package.path = "./?/init.lua;"..package.path diff --git a/lua/config/escape.lua b/lua/config/escape.lua new file mode 100644 index 0000000..23bb2cb --- /dev/null +++ b/lua/config/escape.lua @@ -0,0 +1,10 @@ +return { + "m-gail/escape.nvim", + config = function() + local escape = require("escape").escape + + require("legendary").keymaps{ + {"e", escape, description="Escape quotes", mode={"v"}, opts={noremap=true,silent = true}} + } + end +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 8df7532..a60c4de 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -34,6 +34,7 @@ return function(use) use_config "git-conflict" use_config "doxygen-tk" use_config "navbuddy" + use_config "escape" -- use_config "ufo" use { From f241748ec531ead7b61011357e61a68857ed7e85 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 13 Jul 2023 15:49:21 +0300 Subject: [PATCH 5/6] add nvim-bqf --- lua/plugins.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index a60c4de..1fce4a3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -76,6 +76,7 @@ return function(use) config_name = "luapad" } + use "kevinhwang91/nvim-bqf" use "tpope/vim-eunuch" use "christoomey/vim-tmux-navigator" use "eandrju/cellular-automaton.nvim" From 50d906f8cbf5cc9c6b348916af305260321b0112 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 13 Jul 2023 15:56:40 +0300 Subject: [PATCH 6/6] add compiler-explorer.nvim --- lua/plugins.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 1fce4a3..26ec29c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -76,6 +76,7 @@ return function(use) config_name = "luapad" } + use "krady21/compiler-explorer.nvim" use "kevinhwang91/nvim-bqf" use "tpope/vim-eunuch" use "christoomey/vim-tmux-navigator"