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
This commit is contained in:
Josh Sherman 2025-04-15 12:32:55 -05:00
parent 60458b51c9
commit c2d9017d1c
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 17 additions and 1 deletions

View file

@ -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" },

View file

@ -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 = {
{ '<leader>oc', ':CursorOpen<CR>', desc = '[O]pen in [C]ursor' },
{ '<leader>oC', ':CursorOpen!<CR>', desc = '[O]pen in [C]ursor (new window)' },
},
config = function()
require('cursor_open').setup()
end
},
},
install = { colorscheme = { 'solarized-osaka' } },
checker = { enabled = true },