From 2e4ccafb32a0d1fef5fb8b591eebdfbffcf0bfea Mon Sep 17 00:00:00 2001 From: EGRrqq <86194387+EGRrqq@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:11:32 -0500 Subject: [PATCH] feat(cfg): add support for wrap with abbreviation feat(cfg): move custom plugins to a separate file feat(cfg): uncomment kickstart plugins --- init.lua | 10 +++++----- lua/custom/plugins/init.lua | 8 +++++++- lua/custom/plugins/nvim-emmet.lua | 7 +++++++ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 lua/custom/plugins/nvim-emmet.lua diff --git a/init.lua b/init.lua index 9f0a6350..c0efb33c 100644 --- a/init.lua +++ b/init.lua @@ -67,9 +67,6 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup({ -- NOTE: First, some plugins that don't require any configuration - -- vim motion study - 'ThePrimeagen/vim-be-good', - -- Git related plugins 'tpope/vim-fugitive', 'tpope/vim-rhubarb', @@ -218,8 +215,8 @@ require('lazy').setup({ -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. - -- require 'kickstart.plugins.autoformat', - -- require 'kickstart.plugins.debug', + require 'kickstart.plugins.autoformat', + require 'kickstart.plugins.debug', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping @@ -460,6 +457,9 @@ local servers = { -- tsserver = {}, -- html = { filetypes = { 'html', 'twig', 'hbs'} }, + -- requirement for https://github.com/olrtg/nvim-emmet + emmet_language_server = {}, + lua_ls = { Lua = { workspace = { checkThirdParty = false }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..1f1ec3b4 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,10 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + -- vim motion study + 'ThePrimeagen/vim-be-good', + + --"surroundings": parentheses, brackets, quotes, XML tags, and more + 'tpope/vim-surround', +} diff --git a/lua/custom/plugins/nvim-emmet.lua b/lua/custom/plugins/nvim-emmet.lua new file mode 100644 index 00000000..0dfbcabd --- /dev/null +++ b/lua/custom/plugins/nvim-emmet.lua @@ -0,0 +1,7 @@ +return { + "olrtg/nvim-emmet", + + config = function() + vim.keymap.set({ "n", "v" }, 'xe', require('nvim-emmet').wrap_with_abbreviation) + end, +}