neovim new config
This commit is contained in:
parent
763bbf5cc1
commit
315e988734
50 changed files with 739 additions and 52 deletions
11
home/afoucaultc/packages/neovim/snippets/matlab.lua
Normal file
11
home/afoucaultc/packages/neovim/snippets/matlab.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local ls = require("luasnip")
|
||||
local i = ls.insert_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
local line_begin = require("luasnip.extras.expand_conditions").line_begin
|
||||
|
||||
return {
|
||||
ls.snippet(
|
||||
{ trig = "plot", name = "Plot", condition = line_begin },
|
||||
fmt([[plot({},{},'Color',{},'Linewidth',1.5,'MarkerSize',0,'DisplayName',"{}")]], { i(1), i(2), i(3), i(4) })
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue