nvim: snip snip snip
This commit is contained in:
parent
ab52944d85
commit
92fd6c7d51
4 changed files with 27 additions and 8 deletions
|
@ -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 = { -- {{{
|
||||
|
|
|
@ -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'
|
||||
},
|
||||
|
|
|
@ -4,6 +4,7 @@ local M = {
|
|||
'nvim-treesitter/playground',
|
||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
||||
{ 'yioneko/nvim-yati', tag = 'legacy' }
|
||||
-- { dir = '/home/sogun/devel/nvim-yati/', }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
15
dot_config/nvim/snippets/php.snippets
Normal file
15
dot_config/nvim/snippets/php.snippets
Normal 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}',
|
||||
],
|
Loading…
Add table
Reference in a new issue