Neovim_Backup/NvChad-Confs/init.lua
2021-11-16 16:47:05 -06:00

54 lines
1.4 KiB
Lua

local hooks = require "core.hooks"
vim.g.mapleader = " "
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,
}
use {
"neoclide/coc.nvim",
branch="release"
}
use {
"gennaro-tedesco/nvim-peekup"
}
end)
-- COC NVIM KEYBINDS
vim.cmd("source ~/.config/nvim/lua/custom/configs/coc_bindings.vim")
hooks.add("setup_mappings", function(map)
-- local lsp_opts = {}
-- map("n", "<leader>d", "<cmd>lua vim.lsp.buf.hover()<CR>", lsp_opts)
-- map("n", "<leader>D", "<cmd>lua vim.lsp.buf.signature_help()<CR>", lsp_opts)
-- map("n", "<leader>b", "<cmd>lua vim.lsp.buf.definition()<CR>", lsp_opts)
-- map("n", "<leader>B", "<cmd>lua vim.lsp.buf.implementation()<CR>", lsp_opts)
-- map("n", "<leader>r", "<cmd>lua vim.lsp.buf.references()<CR>", lsp_opts)
-- map("n", "<leader>R", "<cmd>lua vim.lsp.buf.rename()<CR>", lsp_opts)
-- map("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", lsp_opts)
end)