summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lvim/config/init.lua2
-rw-r--r--lua/lvim/lsp/null-ls/formatters.lua1
-rw-r--r--lua/lvim/lsp/null-ls/linters.lua2
-rw-r--r--lua/lvim/plugins.lua41
4 files changed, 34 insertions, 12 deletions
diff --git a/lua/lvim/config/init.lua b/lua/lvim/config/init.lua
index 783fb2be..c932c456 100644
--- a/lua/lvim/config/init.lua
+++ b/lua/lvim/config/init.lua
@@ -57,7 +57,7 @@ local function handle_deprecated_settings()
setting
)
vim.schedule(function()
- vim.notify(msg, vim.log.levels.WARN)
+ Log:warn(msg)
end)
end
diff --git a/lua/lvim/lsp/null-ls/formatters.lua b/lua/lvim/lsp/null-ls/formatters.lua
index 87583abd..20939039 100644
--- a/lua/lvim/lsp/null-ls/formatters.lua
+++ b/lua/lvim/lsp/null-ls/formatters.lua
@@ -22,6 +22,7 @@ function M.list_available(filetype)
end
end
+ table.sort(formatters)
return formatters
end
diff --git a/lua/lvim/lsp/null-ls/linters.lua b/lua/lvim/lsp/null-ls/linters.lua
index 1069ac58..ced4bf34 100644
--- a/lua/lvim/lsp/null-ls/linters.lua
+++ b/lua/lvim/lsp/null-ls/linters.lua
@@ -21,7 +21,7 @@ function M.list_available(filetype)
table.insert(linters, provider.name)
end
end
-
+ table.sort(linters)
return linters
end
diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua
index 0974d9b6..6531c04a 100644
--- a/lua/lvim/plugins.lua
+++ b/lua/lvim/plugins.lua
@@ -27,6 +27,12 @@ local commit = {
dap = "dd778f65dc95323f781f291fb7c5bf3c17d057b1",
dap_install = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
toggleterm = "5f9ba91157a25be5ee7395fbc11b1a8f25938365",
+ luasnip = "bab7cc2c32fba00776d2f2fc4704bed4eee2d082",
+ cmp_luasnip = "16832bb50e760223a403ffa3042859845dd9ef9d",
+ cmp_buffer = "d1ca295ce584ec80763a6dc043080874b57ccffc",
+ cmp_nvim_lsp = "accbe6d97548d8d3471c04d512d36fa61d0e4be8",
+ cmp_path = "97661b00232a2fe145fe48e295875bc3299ed1f7",
+ cmp_nvim_lua = "d276254e7198ab7d00f117e88e223b4bd8c02d21",
}
return {
@@ -71,14 +77,6 @@ return {
config = function()
require("lvim.core.cmp").setup()
end,
- requires = {
- "L3MON4D3/LuaSnip",
- "saadparwaiz1/cmp_luasnip",
- "hrsh7th/cmp-buffer",
- "hrsh7th/cmp-nvim-lsp",
- "hrsh7th/cmp-path",
- "hrsh7th/cmp-nvim-lua",
- },
run = function()
-- cmp's config requires cmp to be installed to run the first time
if not lvim.builtin.cmp then
@@ -92,6 +90,30 @@ return {
-- event = "InsertCharPre",
-- disable = not lvim.builtin.compe.active,
},
+ {
+ "L3MON4D3/LuaSnip",
+ commit = commit.luasnip,
+ },
+ {
+ "saadparwaiz1/cmp_luasnip",
+ commit = commit.cmp_luasnip,
+ },
+ {
+ "hrsh7th/cmp-buffer",
+ commit = commit.cmp_buffer,
+ },
+ {
+ "hrsh7th/cmp-nvim-lsp",
+ commit = commit.cmp_nvim_lsp,
+ },
+ {
+ "hrsh7th/cmp-path",
+ commit = commit.cmp_path,
+ },
+ {
+ "hrsh7th/cmp-nvim-lua",
+ commit = commit.cmp_nvim_lua,
+ },
-- Autopairs
{
@@ -125,8 +147,7 @@ return {
"kyazdani42/nvim-tree.lua",
-- event = "BufWinOpen",
-- cmd = "NvimTreeToggle",
- -- commit = commit.nvim_tree,
- commit = "f92b7e7627c5a36f4af6814c408211539882c4f3",
+ commit = commit.nvim_tree,
config = function()
require("lvim.core.nvimtree").setup()
end,