diff --git a/.gitignore b/.gitignore index da07f7f..53d96c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ plugin spell +_main diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 3d05bf1..5cabdc6 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -21,7 +21,6 @@ M.general = { -- luasnip change choice [""] = {"luasnip-next-choice", "change luasnip choice"}, - }, n = { @@ -80,6 +79,13 @@ M.general = { "toggle theme", }, + -- luasnip edit snippets + ["se"] = { + function() + require("luasnip.loaders").edit_snippet_files() + end, + "luasnip edit snippets"}, + -- Allow moving the cursor through wrapped lines with j, k, and -- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/ -- empty mode is same as using :map @@ -397,7 +403,7 @@ M.nvterm = { function() require("nvterm.terminal").toggle "float" end, - "toggle floating term", + "toggle floatinvg term", }, [""] = { @@ -406,13 +412,6 @@ M.nvterm = { end, "toggle horizontal term", }, - - [""] = { - function() - require("nvterm.terminal").toggle "vertical" - end, - "toggle vertical term", - }, }, n = { diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index ecad11d..930e218 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -35,5 +35,8 @@ return { } end }, - ["honza/vim-snippets"] = {} + ["honza/vim-snippets"] = { + module = {"cmp", "cmp_nvim_lsp"}, + event = "InsertEnter", + } }