From cb5572ac1f7973c194376b5222667da3f5d63614 Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Sat, 6 Jul 2024 02:49:13 +0200 Subject: [PATCH] Fix mapping, enable astrocore, update neovide font --- lua/plugins/astrocore.lua | 9 ++++++--- lua/plugins/neovide.lua | 2 +- lua/plugins/user.lua | 2 -- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index de17c22..b3f2042 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -1,5 +1,3 @@ -if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE - -- AstroCore provides a central place to modify mappings, vim options, autocommands, and more! -- Configuration documentation can be found with `:h astrocore` -- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`) @@ -13,7 +11,7 @@ return { -- Configure core features of AstroNvim features = { large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter - autopairs = true, -- enable autopairs at start + autopairs = false, -- enable autopairs at start cmp = true, -- enable completion at start diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on) highlighturl = true, -- highlight URLs at start @@ -44,6 +42,7 @@ return { mappings = { -- first key is the mode n = { + -- second key is the lefthand side of the map -- navigate buffer tabs with `H` and `L` @@ -75,6 +74,10 @@ return { -- setting a mapping to false will disable it -- [""] = false, }, + i = { + -- vim.keymap.set("i", "jk", "") + ["jk"] = { "", desc = "Exit insert mode" }, + }, }, }, } diff --git a/lua/plugins/neovide.lua b/lua/plugins/neovide.lua index e0b6877..75c0de3 100644 --- a/lua/plugins/neovide.lua +++ b/lua/plugins/neovide.lua @@ -9,7 +9,7 @@ return { options = { opt = { -- configure vim.opt options -- configure font - -- guifont = "Source Code Pro:h14", + guifont = "FiraCode Nerd Font Mono:h11", -- line spacing linespace = 0, }, diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 7bd0b66..f28aa6c 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -3,8 +3,6 @@ ---@type LazySpec -vim.keymap.set("i", "jk", "") - return { -- == Examples of Adding Plugins ==