-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
minimal_init.lua
48 lines (44 loc) · 1.72 KB
/
minimal_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
36
37
38
39
40
41
42
43
44
45
46
47
48
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"max397574/care.nvim",
config = function()
vim.keymap.set("i", "<c-n>", function()
vim.snippet.jump(1)
end)
vim.keymap.set("i", "<c-p>", function()
vim.snippet.jump(-1)
end)
vim.keymap.set("i", "<c-space>", function()
require("care").api.complete()
end)
vim.keymap.set("i", "<cr>", "<Plug>(CareConfirm)")
vim.keymap.set("i", "<c-e>", "<Plug>(CareClose)")
vim.keymap.set("i", "<tab>", "<Plug>(CareSelectNext)")
vim.keymap.set("i", "<s-tab>", "<Plug>(CareSelectPrev)")
vim.keymap.set("i", "<c-f>", function()
if require("care").api.doc_is_open() then
require("care").api.scroll_docs(4)
else
vim.api.nvim_feedkeys(vim.keycode("<c-f>"), "n", false)
end
end)
vim.keymap.set("i", "<c-d>", function()
if require("care").api.doc_is_open() then
require("care").api.scroll_docs(-4)
else
vim.api.nvim_feedkeys(vim.keycode("<c-d>"), "n", false)
end
end)
end,
},
{
"neovim/nvim-lspconfig",
config = function()
require("lspconfig")["lua_ls"].setup({})
end,
},
},
})