From 4417eb0a77892f4b24eeb5adc97b8890f14187fb Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Fri, 11 Feb 2022 17:33:32 +0100 Subject: Update NvChad config --- .config/nvim/lua/custom/init.lua | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to '.config/nvim/lua/custom/init.lua') diff --git a/.config/nvim/lua/custom/init.lua b/.config/nvim/lua/custom/init.lua index 473ff84..6d1f5fb 100644 --- a/.config/nvim/lua/custom/init.lua +++ b/.config/nvim/lua/custom/init.lua @@ -1,6 +1,7 @@ -- This is where your custom modules and plugins go. -- See the wiki for a guide on how to extend NvChad -local hooks = require "core.hooks" +--local customPlugins = require "core.customPlugins" + vim.api.nvim_command("nnoremap :m .+1==") vim.api.nvim_command("nnoremap :m .-2==") vim.api.nvim_command("inoremap :m .+1==gi") @@ -17,7 +18,7 @@ vim.api.nvim_command("vnoremap :m '<-2gv=gv") -- or you can override the whole plugin config with 'chadrc' -> M.plugins.default_plugin_config_replace{} -- this will run your config instead of the NvChad config for the given plugin --- hooks.override("lsp", "publish_diagnostics", function(current) +-- customPlugins.override("lsp", "publish_diagnostics", function(current) -- current.virtual_text = false; -- return current; -- end) @@ -26,7 +27,7 @@ vim.api.nvim_command("vnoremap :m '<-2gv=gv") -- you can set one or many mappings -- example below: --- hooks.add("setup_mappings", function(map) +-- customPlugins.add("setup_mappings", function(map) -- map("n", "cc", "gg0vG$d", opt) -- example to delete the buffer -- .... many more mappings .... -- end) @@ -36,7 +37,8 @@ vim.api.nvim_command("vnoremap :m '<-2gv=gv") -- see: https://github.com/wbthomason/packer.nvim -- examples below: -hooks.add("install_plugins", function(use) +--[[ +customPlugins.add("install_plugins", function(use) use { "williamboman/nvim-lsp-installer", config = function() @@ -51,11 +53,14 @@ hooks.add("install_plugins", function(use) server:setup(opts) vim.cmd [[ do User LspAttachBuffers ]] - end) - end, - } +-- end) +-- end, +-- } + --]] -- Custom stuff - use { "nathom/filetype.nvim" } + -- use { "nathom/filetype.nvim" } + --[[ + use { "karb94/neoscroll.nvim", @@ -77,7 +82,7 @@ hooks.add("install_plugins", function(use) "editorconfig/editorconfig-vim", } end) - +--]] -- alternatively, put this in a sub-folder like "lua/custom/plugins/mkdir" -- then source it with -- cgit v1.2.3