Added leap.nvim to config

This commit is contained in:
afonsofrancof 2022-10-16 03:27:55 +01:00
parent e198d0775a
commit 5fdd52eccf
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,5 @@
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
vim.wo.number=true
vim.wo.relativenumber= true
vim.g.luasnippets_path = "~/.config/nvim/lua/custom/luasnippets" vim.g.luasnippets_path = "~/.config/nvim/lua/custom/luasnippets"

View file

@ -6,11 +6,10 @@
], ],
"description": "Create a Split" "description": "Create a Split"
}, },
"Use CP Rule": { "Use CP Rule": {
"prefix": ["rule"], "prefix": ["rule"],
"body": [ "body": [
"\\equiv \\{Propriedade\\ ${1:Numero_da_propriedade}\\}\\\\$0" "\\equiv \\{\\text{Propriedade ${1:Numero_da_propriedade}}\\\\}\\\\\\\\$0"
], ],
"description": "Create a Split" "description": "Create a Split"
}, },

View file

@ -10,5 +10,10 @@ return {
require("plugins.configs.others").luasnip() require("plugins.configs.others").luasnip()
require("luasnip.loaders.from_vscode").lazy_load({ paths = vim.g.luasnippets_path }) require("luasnip.loaders.from_vscode").lazy_load({ paths = vim.g.luasnippets_path })
end end
},
["ggandor/leap.nvim"] = {
config = function ()
require('leap').add_default_mappings()
end
} }
} }