luasnip + nvim-cmp changes
This commit is contained in:
parent
8c1ff008e5
commit
8609852a1e
2 changed files with 13 additions and 2 deletions
|
@ -4,12 +4,18 @@ lvim.log.level = "warn"
|
|||
lvim.format_on_save = true
|
||||
lvim.builtin.alpha.mode = "startify"
|
||||
lvim.builtin.nvimtree.show_icons.git = 1
|
||||
|
||||
lvim.builtin.lualine.options.globalstatus = true
|
||||
|
||||
local o = vim.opt
|
||||
o.timeoutlen = 300
|
||||
o.shell = "/bin/sh"
|
||||
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "cmdline"} )
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "cmp_git"} )
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "digraphs"} )
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "spell", keyword_length = 3} )
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "dictionary", keyword_length = 3} )
|
||||
table.insert(lvim.builtin.cmp.sources, {name = "rg", keyword_length = 3} )
|
||||
|
||||
-- Keymappings
|
||||
lvim.leader = "space"
|
||||
|
@ -75,9 +81,14 @@ lvim.plugins = {
|
|||
config = function()
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
end, },
|
||||
{ "petertriho/cmp-git" },
|
||||
{ "uga-rosa/cmp-dictionary" },
|
||||
{ "dmitmel/cmp-digraphs"},
|
||||
{ "lukas-reineke/cmp-rg" },
|
||||
{ "nvim-neorg/neorg", config = req "conf.neorg", },
|
||||
{ "folke/trouble.nvim", cmd = "TroubleToggle", },
|
||||
}
|
||||
|
||||
require "conf.luasnip"
|
||||
require "conf.dap"
|
||||
require "conf.dictionary"
|
||||
|
|
|
@ -6,7 +6,7 @@ end
|
|||
local types = require "luasnip.util.types"
|
||||
|
||||
ls.config.set_config {
|
||||
history = false,
|
||||
history = true,
|
||||
updateevents = "TextChanged,TextChangedI",
|
||||
enable_autosnippets = true,
|
||||
ext_opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue