Skip to content

Commit b303c6a

Browse files
committed
refactored lsp folder in lipe/plugins/
1 parent 5364b91 commit b303c6a

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

lua/lipe/plugins/lsp/cmp.lua

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
-- Handles everything cmp related
22
return {
3-
{
4-
"L3MON4D3/LuaSnip",
5-
version = "v2.*",
6-
lazy = true, -- nvim-cmp will load luasnip
7-
dependencies = {
8-
"rafamadriz/friendly-snippets",
9-
},
10-
config = function()
11-
require("luasnip/loaders/from_vscode").lazy_load()
12-
end,
13-
build = "make install_jsregexp", -- Optional
14-
},
153
{
164
"hrsh7th/nvim-cmp",
17-
event = "InsertEnter",
5+
-- !!! I have no idea but if we don't lazy load this in any way the remove_italics
6+
-- function (in treesitter.lua) won't work and things will become italic again...
7+
event = "VeryLazy",
188
dependencies = {
199
"L3MON4D3/LuaSnip", -- Snippet engine
2010
"saadparwaiz1/cmp_luasnip", -- Snippet completion
@@ -106,7 +96,7 @@ return {
10696
},
10797
window = {
10898
completion = cmp.config.window.bordered({
109-
border = "single",
99+
border = "none", -- "single"
110100
}),
111101
documentation = cmp.config.window.bordered({
112102
border = { "", "", "", "", "", "", "", "" },

lua/lipe/plugins/lsp/snippets.lua

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
-- Snippet engines & sources
2+
return {
3+
{
4+
"rafamadriz/friendly-snippets",
5+
lazy = true, -- luasnip will load friendly-snippets
6+
},
7+
{
8+
"L3MON4D3/LuaSnip",
9+
version = "v2.*",
10+
lazy = true, -- nvim-cmp will load luasnip
11+
dependencies = {
12+
"rafamadriz/friendly-snippets",
13+
},
14+
config = function()
15+
require("luasnip/loaders/from_vscode").lazy_load()
16+
end,
17+
build = "make install_jsregexp", -- Optional
18+
},
19+
}

0 commit comments

Comments
 (0)