-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
35 lines (27 loc) · 822 Bytes
/
init.lua
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
34
35
vim.g.neovide_fullscreen = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.cursorline = true
vim.o.title = true
vim.o.autoindent = true
vim.o.smartindent = true
vim.o.hlsearch = true
vim.o.ignorecase = true
vim.o.expandtab = true
vim.o.shiftwidth = 2
vim.o.tabstop = 2
vim.o.scrolloff = 8
vim.o.updatetime = 1000
local remap = vim.api.nvim_set_keymap
local opts = {silent = true, noremap = true}
if vim.g.neovide then vim.cmd [[cd ~/dev/finaloop-app]] end
vim.g.mapleader = ' '
remap('n', '<Space>', '<Nop>', opts)
remap('n', '<Leader>fs', ':w<CR>', opts)
remap('i', '<C-v>', '<Esc>"+pi', opts)
remap('n', '<C-v>', '"+p', opts)
remap('n', '<C-c>', '"+yy', opts)
remap('v', '<C-c>', '"+y', opts)
remap('n', '<Leader>[', '<Cmd>cp<CR>', opts)
remap('n', '<Leader>]', '<Cmd>cn<CR>', opts)
require 'plugins'