You've already forked dotfiles
feat: Adding keymappings for snippet traversal and removing the devicons
dependency from lualine
This commit is contained in:
@@ -7,7 +7,7 @@ local function get_schema()
|
|||||||
end
|
end
|
||||||
|
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
'https://github.com/nvim-tree/nvim-web-devicons',
|
-- 'https://github.com/nvim-tree/nvim-web-devicons',
|
||||||
'https://github.com/nvim-lualine/lualine.nvim'
|
'https://github.com/nvim-lualine/lualine.nvim'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
'https://github.com/saadparwaiz1/cmp_luasnip',
|
-- 'https://github.com/saadparwaiz1/cmp_luasnip',
|
||||||
'https://github.com/rafamadriz/friendly-snippets',
|
'https://github.com/rafamadriz/friendly-snippets',
|
||||||
'https://github.com/L3MON4D3/LuaSnip'
|
'https://github.com/L3MON4D3/LuaSnip'
|
||||||
})
|
})
|
||||||
@@ -13,7 +13,7 @@ local function luasnip_dependency_update()
|
|||||||
-- Verify the lib exists, (re)run the make install target
|
-- Verify the lib exists, (re)run the make install target
|
||||||
if vim.uv.fs_stat(artifact) then
|
if vim.uv.fs_stat(artifact) then
|
||||||
vim.notify('Building LuaSnip jsregexp dependency...', vim.log.levels.INFO)
|
vim.notify('Building LuaSnip jsregexp dependency...', vim.log.levels.INFO)
|
||||||
vim.system({ 'make', 'install_jsregexp' }, { cwd = luasnip_root }, function (out)
|
vim.system({ 'make', 'install_jsregexp' }, { cwd = luasnip_root }, function(out)
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
if out.code == 0 then
|
if out.code == 0 then
|
||||||
vim.notify('LuaSnip jsregexp built successfully!', vim.log.levels.INFO)
|
vim.notify('LuaSnip jsregexp built successfully!', vim.log.levels.INFO)
|
||||||
@@ -38,7 +38,10 @@ require('luasnip').setup {
|
|||||||
enable_autosnippets = true,
|
enable_autosnippets = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- local types = require('luasnip.util.types')
|
|
||||||
|
|
||||||
require('luasnip.loaders.from_vscode').lazy_load()
|
require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
require('luasnip.loaders.from_lua').lazy_load({ paths = "./snippets" })
|
require('luasnip.loaders.from_lua').lazy_load({ paths = "./snippets" })
|
||||||
|
|
||||||
|
-- TODO: Figure out keymappings that make sense
|
||||||
|
vim.keymap.set({ 'i' }, '<C-k>', function() require('luasnip').expand() end, { silent = true })
|
||||||
|
vim.keymap.set({ 'i', 's' }, '<C-l>', function() require('luasnip').jump(1) end, { silent = true })
|
||||||
|
vim.keymap.set({ 'i', 's' }, '<C-j>', function() require('luasnip').jump(-1) end, { silent = true })
|
||||||
|
|||||||
Reference in New Issue
Block a user