-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlite.lua
60 lines (51 loc) · 2.05 KB
/
lite.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
require('one').setup {
config = {
-- headlines = { markdown = { quote_string = false } },
vim = {
opt = {
colorcolumn = { 81, 101 }, -- highlight columns. See ":h 'cc'"
},
},
pluginManager = { use = 'local' }, -- 'vim-plug' or 'packer' or 'lazy' or 'local'
},
---@diagnostic disable-next-line: unused-local
configFn = require('my.config').configFn,
-- @param [opts.onlyPlugins] {string[]|nil}
-- It's useful for debug. Defaults to nil.
-- If set empty table, all builtin and user-defined plugins are disabled.
-- If set non-empty table, only these plugins are not disabled.
onlyPlugins = { 'vim', 'one', 'colors', 'general.keymap', 'general.commands', 'filetype', '1', '2' },
-- Add your plugins or override plugin default options.
plugins = {
{
id = '1',
highlights = require('my.highlights'),
filetypes = require('my.filetypes').callbacks,
commands = require('my.commands'),
telescopes = require('my.telescopes'),
autocmds = require('my.autocmds'),
keymaps = {
{ 'i', '<C-a>', '<Esc>I', { noremap = true, silent = true } },
{ 'i', '<C-e>', '<Esc>A', { noremap = true, silent = true } },
{ 'i', '<C-b>', '<Esc>ha', { noremap = true, silent = true } },
{ 'i', '<C-f>', '<Esc>la', { noremap = true, silent = true } },
{ 'i', '<M-b>', '<Esc>bi', { noremap = true, silent = true } },
{ 'i', '<M-f>', '<Esc>Ea', { noremap = true, silent = true } },
{ 'i', '<M-d>', '<Esc>dwa', { noremap = true, silent = true } },
{ 'i', '<C-d>', '<Esc>dla', { noremap = true, silent = true } },
{ 'i', '<C-w>', '<Esc>bdei', { noremap = true, silent = true } },
{ 'i', '<C-k>', '<Esc>Da', { noremap = true, silent = true } },
{ 'i', '<C-u>', '<Esc>dl0i', { noremap = true, silent = true } },
{ 'i', 'jk', '<Esc>', { noremap = true, silent = true, desc = 'Exit from input mode' } },
},
},
{
id = '2',
highlights = { --
StatusLine = { fg = '#7B85D6', bg = '#282867' },
StatusLineNC = { bg = '#232323' },
},
keymaps = { { '', '<Space>m', ':Lexplore<CR>', { silent = true } } },
},
},
}