replace vsnip with luasnip,clean some confs
This commit is contained in:
parent
3523eb277b
commit
9da869feee
4 changed files with 49 additions and 25 deletions
|
|
@ -45,7 +45,19 @@ return packer.startup(
|
|||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("compe-completion").config()
|
||||
end
|
||||
end,
|
||||
wants = {"LuaSnip"},
|
||||
requires = {
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
wants = "friendly-snippets",
|
||||
event = "InsertCharPre",
|
||||
config = function()
|
||||
require("compe-completion").snippets()
|
||||
end
|
||||
},
|
||||
"rafamadriz/friendly-snippets"
|
||||
}
|
||||
}
|
||||
|
||||
use {
|
||||
|
|
@ -53,13 +65,6 @@ return packer.startup(
|
|||
cmd = "Neoformat"
|
||||
}
|
||||
|
||||
-- snippet support
|
||||
use {
|
||||
"hrsh7th/vim-vsnip",
|
||||
event = "InsertCharPre"
|
||||
}
|
||||
use "rafamadriz/friendly-snippets"
|
||||
|
||||
-- file managing , picker etc
|
||||
use {
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
|
|
@ -79,9 +84,7 @@ return packer.startup(
|
|||
{"nvim-telescope/telescope-fzf-native.nvim", run = "make"},
|
||||
{"nvim-telescope/telescope-media-files.nvim"}
|
||||
},
|
||||
cmd = {
|
||||
"Telescope"
|
||||
},
|
||||
cmd = "Telescope",
|
||||
config = function()
|
||||
require("telescope-nvim").config()
|
||||
end
|
||||
|
|
@ -132,7 +135,7 @@ return packer.startup(
|
|||
|
||||
use {"tweekmonster/startuptime.vim", cmd = "StartupTime"}
|
||||
|
||||
-- load autosave plugin only if its globally enabled
|
||||
-- load autosave only if its globally enabled
|
||||
use {
|
||||
"907th/vim-auto-save",
|
||||
cond = function()
|
||||
|
|
@ -164,14 +167,7 @@ return packer.startup(
|
|||
branch = "lua",
|
||||
event = "BufRead",
|
||||
setup = function()
|
||||
vim.g.indentLine_enabled = 1
|
||||
vim.g.indent_blankline_char = "▏"
|
||||
|
||||
vim.g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
|
||||
vim.g.indent_blankline_buftype_exclude = {"terminal"}
|
||||
|
||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||
vim.g.indent_blankline_show_first_indent_level = false
|
||||
require("misc-utils").blankline()
|
||||
end
|
||||
}
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue