From dcd6af00f6c9f9ba29d78f043747eca7cf4b168a Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Fri, 22 Nov 2024 17:38:39 +0100 Subject: [PATCH 1/3] disable codeium and add markdown preview --- lua/community.lua | 1 + lua/plugins/user.lua | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lua/community.lua b/lua/community.lua index 7d23ee9..b8d5c80 100644 --- a/lua/community.lua +++ b/lua/community.lua @@ -8,6 +8,7 @@ return { { import = "astrocommunity.pack.lua" }, -- import/override with your plugins folder { import = "astrocommunity.colorscheme.catppuccin" }, + { import = "astrocommunity.colorscheme.rose-pine" }, --{ import = "astrocommunity.scrolling.nvim-scrollbar" }, { import = "astrocommunity.scrolling.satellite-nvim" }, { import = "astrocommunity.scrolling.neoscroll-nvim" }, diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 32d720f..ca55607 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -7,14 +7,21 @@ return { -- == Examples of Adding Plugins == - "andweeb/presence.nvim", + -- "andweeb/presence.nvim", { "ray-x/lsp_signature.nvim", event = "BufRead", config = function() require("lsp_signature").setup() end, }, - - -- == Examples of Overriding Plugins == + { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + build = "cd app && npm install", + init = function() + vim.g.mkdp_filetypes = { "markdown" } + end, + ft = { "markdown" }, + }, -- customize alpha options { @@ -84,6 +91,7 @@ return { { "Exafunction/codeium.nvim", + enabled = false, dependencies = { "nvim-lua/plenary.nvim", "hrsh7th/nvim-cmp", From ebc7c1077f338ee883bb0e5f8b4710ef019752a9 Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Mon, 25 Nov 2024 09:39:16 +0100 Subject: [PATCH 2/3] add navigation binds --- lua/plugins/astrocore.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index b3f2042..69517d6 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -69,6 +69,18 @@ return { ["b"] = { desc = "Buffers" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command + ["gh"] = { + "0", + desc = "Goto line start" + }, + ["gl"] = { + "$", + desc = "Goto line end" + }, + ["gs"] = { + "^", + desc = "Goto first non-blank in line" + } }, t = { -- setting a mapping to false will disable it From caad93bd07c2ba025a1a03d9e58429046306925f Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Mon, 25 Nov 2024 10:25:40 +0100 Subject: [PATCH 3/3] fix: remove conflicting gl bind --- lua/plugins/astrolsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index e07558d..9e512c0 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -82,7 +82,7 @@ return { -- mappings to be set up on attaching of a language server mappings = { n = { - gl = { function() vim.diagnostic.open_float() end, desc = "Hover diagnostics" }, + -- gl = { function() vim.diagnostic.open_float() end, desc = "Hover diagnostics" }, -- a `cond` key can provided as the string of a server capability to be required to attach, or a function with `client` and `bufnr` parameters from the `on_attach` that returns a boolean -- gD = { -- function() vim.lsp.buf.declaration() end,