Skip to content

Commit

Permalink
feat: project-local snippets snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdivad committed Mar 22, 2024
1 parent edc7711 commit ee673cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/nvim/config/snippets/lua.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,11 @@ snippet usercmd

snippet stylua-ignore "don't format the next line"
-- stylua: ignore


snippet local-snippets "create project local snippets setup in .nvim.lua"
-- .nvim.lua
-- TODO: mkdir -p .nvim/snippets && touch .nvim/snippets/${0}_local
local ls = require("luasnip")

require('luasnip.loaders.from_snipmate').load({paths={vim.fn.getcwd() .. "/.nvim/snippets"}})
ls.filetype_extend("${0}", { "${0}_local" })

0 comments on commit ee673cf

Please sign in to comment.