feat: add fugitive and neo-tree
This commit is contained in:
@@ -5,4 +5,18 @@
|
||||
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {}
|
||||
return {
|
||||
{
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v3.x',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'MunifTanjim/nui.nvim',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
'tpope/vim-fugitive',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
'L3MON4D3/LuaSnip',
|
||||
config = function(_, opts)
|
||||
local luasnip = require 'luasnip'
|
||||
|
||||
luasnip.config.setup(opts or {})
|
||||
require 'snippets.cpp'
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
local ls = require 'luasnip'
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
local i = ls.insert_node
|
||||
|
||||
ls.add_snippets('cpp', {
|
||||
s('cp', {
|
||||
t {
|
||||
'#include <iostream>',
|
||||
'#include <vector>',
|
||||
'using namespace std;',
|
||||
'',
|
||||
'typedef long long ll;',
|
||||
'',
|
||||
'signed main() {',
|
||||
' ios::sync_with_stdio(false);',
|
||||
' cin.tie(nullptr);',
|
||||
'',
|
||||
' ',
|
||||
},
|
||||
i(0),
|
||||
t {
|
||||
'',
|
||||
'}',
|
||||
},
|
||||
}),
|
||||
})
|
||||
Reference in New Issue
Block a user