From c2d9017d1cf2185c9050dc56fa54df4d31843e11 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 15 Apr 2025 12:32:55 -0500 Subject: [PATCH] Add cursor open and reset my leader key Leader being set to space was seemingly not working. Set it back to the default since I don't really use leader that often --- nvim/.config/nvim/lazy-lock.json | 2 ++ nvim/.config/nvim/lua/config/lazy.lua | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 4fd9d1f..b866212 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -1,11 +1,13 @@ { "ale": { "branch": "master", "commit": "2e5f135836a700dcc6b787f10097ebdeb8e22abb" }, "copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" }, + "cursor_open.nvim": { "branch": "main", "commit": "9d8dfac0142233de872765e31378c647829576ee" }, "editorconfig-vim": { "branch": "master", "commit": "ba2ce027c5b0e523e658d24657ce3ae3306c9fe0" }, "fzf": { "branch": "master", "commit": "90a8800bb596cd98e103788096f2780ee97100b4" }, "fzf.vim": { "branch": "master", "commit": "ec75ffbfd50630bf2b8d444d89487e149bacf7f3" }, "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, "solarized-osaka.nvim": { "branch": "main", "commit": "126d394c0c979a99206214a2b6b8c86e456c9c0f" }, + "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, "tsuquyomi": { "branch": "master", "commit": "e1afca562d46907bf63270157c88b7ec8f66e46b" }, "typescript-vim": { "branch": "master", "commit": "8d169e16b5487771f6568125d4c63e6086e524d9" }, "vim-gh-line": { "branch": "master", "commit": "731751fdfa4f64a061dbc7088cb7b2f12e0828ad" }, diff --git a/nvim/.config/nvim/lua/config/lazy.lua b/nvim/.config/nvim/lua/config/lazy.lua index 28376f7..1ed8a5d 100644 --- a/nvim/.config/nvim/lua/config/lazy.lua +++ b/nvim/.config/nvim/lua/config/lazy.lua @@ -20,7 +20,7 @@ vim.opt.rtp:prepend(lazypath) -- Make sure to setup `mapleader` and `maplocalleader` before loading lazy.nvim -- so that mappings are correct. This is also a good place to setup other -- settings (vim.opt) -vim.g.mapleader = ' ' +vim.g.mapleader = '\\' vim.g.maplocalleader = '\\' require('lazy').setup({ @@ -34,6 +34,8 @@ require('lazy').setup({ event = 'VimEnter', }, { 'junegunn/fzf.vim' }, + -- File exploration and navigation (new) + { 'nvim-telescope/telescope.nvim' }, -- Languages and syntax { 'sheerun/vim-polyglot' }, -- Style guide and linting @@ -49,6 +51,18 @@ require('lazy').setup({ -- GitHub integration { 'github/copilot.vim' }, { 'ruanyl/vim-gh-line' }, + -- Cursor integration + { + 'yuucu/cursor_open.nvim', + cmd = { 'CursorOpen' }, + keys = { + { 'oc', ':CursorOpen', desc = '[O]pen in [C]ursor' }, + { 'oC', ':CursorOpen!', desc = '[O]pen in [C]ursor (new window)' }, + }, + config = function() + require('cursor_open').setup() + end + }, }, install = { colorscheme = { 'solarized-osaka' } }, checker = { enabled = true },