feat: Adding keymappings for snippet traversal and removing the devicons

dependency from lualine
This commit is contained in:
2026-06-07 14:18:51 -05:00
parent b13a31df51
commit 406be77c97
2 changed files with 8 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ local function get_schema()
end
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'
})

View File

@@ -1,5 +1,5 @@
vim.pack.add({
'https://github.com/saadparwaiz1/cmp_luasnip',
-- 'https://github.com/saadparwaiz1/cmp_luasnip',
'https://github.com/rafamadriz/friendly-snippets',
'https://github.com/L3MON4D3/LuaSnip'
})
@@ -13,7 +13,7 @@ local function luasnip_dependency_update()
-- Verify the lib exists, (re)run the make install target
if vim.uv.fs_stat(artifact) then
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()
if out.code == 0 then
vim.notify('LuaSnip jsregexp built successfully!', vim.log.levels.INFO)
@@ -38,7 +38,10 @@ require('luasnip').setup {
enable_autosnippets = true,
}
-- local types = require('luasnip.util.types')
require('luasnip.loaders.from_vscode').lazy_load()
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 })