updated some plugins
This commit is contained in:
parent
7ff113de40
commit
8d219f59a1
2
init.lua
2
init.lua
|
|
@ -1020,5 +1020,7 @@ require('lazy').setup({
|
|||
},
|
||||
})
|
||||
|
||||
require 'custom.init'
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
-- Load additional custom configurations
|
||||
-- require("custom.keymaps") -- Custom keybindings
|
||||
-- require("custom.plugins") -- Custom plugins
|
||||
require 'custom.snippets.edhliicpp' -- Custom snippets
|
||||
|
||||
-- Set some editor options
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
|
||||
-- print 'Custom Neovim setup loaded!'
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'goolord/alpha-nvim',
|
||||
-- dependencies = { 'echasnovski/mini.icons' },
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
local startify = require 'alpha.themes.startify'
|
||||
-- available: devicons, mini, default is mini
|
||||
-- if provider not loaded and enabled is true, it will try to use another provider
|
||||
startify.file_icons.provider = 'devicons'
|
||||
require('alpha').setup(startify.config)
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('bufferline').setup {
|
||||
options = {
|
||||
diagnostics = 'nvim_lsp',
|
||||
show_buffer_close_icons = true,
|
||||
show_close_icon = true,
|
||||
separator_style = 'slant',
|
||||
},
|
||||
}
|
||||
vim.keymap.set('n', '<S-l>', ':BufferLineCycleNext<CR>', { silent = true })
|
||||
vim.keymap.set('n', '<S-h>', ':BufferLineCyclePrev<CR>', { silent = true })
|
||||
vim.keymap.set('n', 'bd', ':bdelete<CR>', { silent = true })
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
version = 'v2.*', -- Latest version
|
||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
config = function()
|
||||
require('luasnip.loaders.from_vscode').lazy_load()
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
{
|
||||
'echasnovski/mini.pairs',
|
||||
version = false, -- Use the latest version
|
||||
config = function()
|
||||
require('mini.pairs').setup()
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
return { 'echasnovski/mini.surround', version = false }
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
-- print 'Custom C++ snippets loaded!'
|
||||
|
||||
local ls = require 'luasnip'
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
|
||||
ls.add_snippets('cpp', {
|
||||
s('cpptemplate', {
|
||||
t {
|
||||
'#include <bits/stdc++.h>',
|
||||
'#define fi first',
|
||||
'#define se second',
|
||||
'using namespace std;',
|
||||
'typedef long long ll;',
|
||||
'typedef unsigned long long ull;',
|
||||
'const int N = 1E6 + 3;',
|
||||
'const ll MOD = 1E9 + 7;',
|
||||
'',
|
||||
'int main() {',
|
||||
' ios_base::sync_with_stdio(false);',
|
||||
' cin.tie(0);',
|
||||
' cout.tie(0);',
|
||||
'',
|
||||
' cout << "edhlii\\n";',
|
||||
'}',
|
||||
},
|
||||
}),
|
||||
})
|
||||
Loading…
Reference in New Issue