-
Notifications
You must be signed in to change notification settings - Fork 68
/
editor.lua
31 lines (23 loc) 路 629 Bytes
/
editor.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
-- Override Cosmic editor options
local g = vim.g
local map = require('cosmic.utils').map
local opt = vim.opt
-- Default leader is <space>
g.mapleader = ','
-- Default indent = 2
opt.shiftwidth = 4
opt.softtabstop = 4
opt.tabstop = 4
-- Add additional keymaps or disable existing ones
-- To view maps set, use `:Telescope keymaps`
-- or `:map`, `:map <leader>`
-- Example: Additional insert mapping:
map('i', 'jj', '<esc>')
-- Mapping options:
-- map('n', ...)
-- map('v', ...)
-- map('i', ...)
-- map('t', ...)
-- Example: Disable find files keymap
-- vim.keymap.del('n', '<leader>f')
-- See :h vim.keymap for more info