1
0
Fork 0

nvim: snip snip snip

This commit is contained in:
Vladimír Dudr 2023-01-18 01:41:16 +01:00
parent ab52944d85
commit 92fd6c7d51
4 changed files with 27 additions and 8 deletions

View file

@ -147,7 +147,7 @@ function M.config()
-- Only run analyzers against open files when 'enableRoslynAnalyzers' is -- Only run analyzers against open files when 'enableRoslynAnalyzers' is
-- true -- true
analyze_open_documents_only = false, analyze_open_documents_only = true,
}, -- }}} }, -- }}}
sumneko_lua = { -- {{{ sumneko_lua = { -- {{{

View file

@ -1,6 +1,9 @@
return { return {
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
config = function() require('luasnip.loaders.from_vscode').lazy_load() end, config = function()
require('luasnip.loaders.from_vscode').lazy_load()
require('luasnip.loaders.from_snipmate').lazy_load()
end,
dependencies = { dependencies = {
'rafamadriz/friendly-snippets' 'rafamadriz/friendly-snippets'
}, },

View file

@ -4,6 +4,7 @@ local M = {
'nvim-treesitter/playground', 'nvim-treesitter/playground',
'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-textobjects',
{ 'yioneko/nvim-yati', tag = 'legacy' } { 'yioneko/nvim-yati', tag = 'legacy' }
-- { dir = '/home/sogun/devel/nvim-yati/', }
} }
} }

View file

@ -0,0 +1,15 @@
snippet child
[
'table' => '${1}',
'this' => 'id',
'there' => '${1}Id',
'route' => '${2:default}',
],
snippet parent
[
'table' => '${1}',
'this' => '${1}Id',
'there' => 'id',
'route' => '${2:default}',
],