diff options
| author | bh <qn+git@excalibur.computer> | 2025-11-13 19:55:39 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2025-11-13 19:55:39 +0800 |
| commit | 1afa56764aaddbbc4253c8e61086aedec2340efd (patch) | |
| tree | c66c56f2b66f77031566904e9f93e648b17e61bb /lua/plugins/init.lua | |
| parent | cfaa4eb06d8353288aa19238c6519a29a9df5d75 (diff) | |
LuaSnips Stuff
Diffstat (limited to 'lua/plugins/init.lua')
| -rw-r--r-- | lua/plugins/init.lua | 50 |
1 files changed, 43 insertions, 7 deletions
diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 0f8fad0..f66d9c6 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -8,6 +8,49 @@ return { end, }, + -- TreeSitter + {"nvim-treesitter/nvim-treesitter", branch = 'master', lazy = false, build = ":TSUpdate", + config = function() + require("config.treesitter")() + end,}, + {"nvim-treesitter/nvim-treesitter-textobjects", lazy = false, }, + + -- Autopairs + { + 'windwp/nvim-autopairs', + event = "InsertEnter", + config = true + -- use opts = {} for passing setup options + -- this is equivalent to setup({}) function + }, + + { + "kylechui/nvim-surround", + version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features + event = "VeryLazy", + config = function() + require("nvim-surround").setup({ + -- Configuration here, or leave empty to use defaults + }) + end + }, + + + -- Autocompletion + { "hrsh7th/nvim-cmp" }, + { "hrsh7th/cmp-nvim-lsp" }, + + -- Snippets + { + "L3MON4D3/LuaSnip", + -- follow latest release. + version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release) + -- install jsregexp (optional!). + build = "make install_jsregexp", + config = function() + require("config.luasnip")() + end, + }, -- File Explorer { "nvim-tree/nvim-tree.lua", config = require("config.tree") }, @@ -33,13 +76,6 @@ return { -- LaTeX { "lervag/vimtex", ft = "tex", config = require("config.vimtex") }, - -- Autocompletion - { "hrsh7th/nvim-cmp" }, - { "hrsh7th/cmp-nvim-lsp" }, - - -- Snippets - { "L3MON4D3/LuaSnip" }, - -- Grammar & Spell Checking { "rhysd/vim-grammarous", ft = "tex" }, |
