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", "d", "lua vim.lsp.buf.hover()", lsp_opts) -- map("n", "D", "lua vim.lsp.buf.signature_help()", lsp_opts) -- map("n", "b", "lua vim.lsp.buf.definition()", lsp_opts) -- map("n", "B", "lua vim.lsp.buf.implementation()", lsp_opts) -- map("n", "r", "lua vim.lsp.buf.references()", lsp_opts) -- map("n", "R", "lua vim.lsp.buf.rename()", lsp_opts) -- map("n", "ca", "lua vim.lsp.buf.code_action()", lsp_opts) end)