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
|
-- 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 = { -- {{{
|
||||||
|
|
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
local M = {
|
local M = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'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/', }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.config()
|
function M.config()
|
||||||
|
|
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