-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
33 lines (27 loc) · 988 Bytes
/
Copy pathinit.lua
File metadata and controls
33 lines (27 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if vim.g.vscode then
-- ==========================================
-- VSCODE-SPECIFIC SETTINGS
-- ==========================================
-- Sync clipboard with VSCode/OS
vim.opt.clipboard = "unnamedplus"
-- How long Neovim waits for 'j' after 'f'
vim.opt.timeoutlen = 300
local map = vim.keymap.set
local opts = { noremap = true, silent = true }
-- Insert mode: fj to Escape
map("i", "fj", "<Esc>", opts)
-- Normal mode: Tab indents, Shift-Tab unindents
map("n", "<Tab>", ">>", opts)
map("n", "<S-Tab>", "<<", opts)
-- Visual mode: Tab indents selection, Shift-Tab unindents
map("v", "<Tab>", ">gv", opts)
map("v", "<S-Tab>", "<gv", opts)
-- Insert mode: Shift-Tab unindents one level
map("i", "<S-Tab>", "<C-d>", opts)
else
-- ==========================================
-- STANDARD TERMINAL NEOVIM SETTINGS
-- ==========================================
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
end