30 lines
639 B
Lua
30 lines
639 B
Lua
|
local hooks = require "core.hooks"
|
||
|
|
||
|
hooks.add("install_plugins", function(use)
|
||
|
use {
|
||
|
"neovim/nvim-lspconfig",
|
||
|
"williamboman/nvim-lsp-installer",
|
||
|
config = function()
|
||
|
local lsp_installer = require("nvim-lsp-installer")
|
||
|
|
||
|
lsp_installer.on_server_ready(function(server)
|
||
|
local opts = {}
|
||
|
|
||
|
server:setup(opts)
|
||
|
vim.cmd [[ do User LspAttachBuffers ]]
|
||
|
end)
|
||
|
end,
|
||
|
}
|
||
|
use {
|
||
|
"karb94/neoscroll.nvim",
|
||
|
opt = true,
|
||
|
config = function()
|
||
|
require("neoscroll").setup()
|
||
|
end,
|
||
|
|
||
|
setup = function()
|
||
|
require("core.utils").packer_lazy_load "neoscroll.nvim"
|
||
|
end,
|
||
|
}
|
||
|
end)
|