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
-- true
analyze_open_documents_only = false,
analyze_open_documents_only = true,
}, -- }}}
sumneko_lua = { -- {{{

View file

@ -1,6 +1,9 @@
return {
'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 = {
'rafamadriz/friendly-snippets'
},

View file

@ -1,10 +1,11 @@
local M = {
'nvim-treesitter/nvim-treesitter',
dependencies = {
'nvim-treesitter/playground',
'nvim-treesitter/nvim-treesitter-textobjects',
{ 'yioneko/nvim-yati', tag = 'legacy' }
}
'nvim-treesitter/nvim-treesitter',
dependencies = {
'nvim-treesitter/playground',
'nvim-treesitter/nvim-treesitter-textobjects',
{ 'yioneko/nvim-yati', tag = 'legacy' }
-- { dir = '/home/sogun/devel/nvim-yati/', }
}
}
function M.config()

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}',
],