Skip to content

Commit 342255e

Browse files
committed
Attempt to assign leader key in VSCode Neovim
update .gitignore for mac systems
1 parent b1d357d commit 342255e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ nvim
55

66
spell/
77
lazy-lock.json
8+
.DS_Store

init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
print("Loading Neovim Configuration..")
12
if vim.g.vscode then
23
-- VSCode extension
4+
print("Loading VSCode Neovim Configuration..")
35
require 'vscode-init'
46
else
57
require 'cli-init'

lua/vscode-init.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
-- VSCode Specific Neovim configuration
22

3+
-- * Custom Keybings * --
4+
5+
-- local keymap = vim.keymap.set
6+
-- local opts = { nmap = true, silent = true }
7+
8+
-- Remap leader key
9+
-- keymap("n", "<Space>", "", opts)
10+
vim.g.mapleader = ' '
11+
vim.g.maplocalleader = ' '
12+
13+
-- * VSCode Neovim Configuration
314
vim.g.have_nerd_font = true
415

516
-- Sync clipboard between OS and Neovim.

0 commit comments

Comments
 (0)