From 003d871cddc2be9aa43177bc81d839c1170a884c Mon Sep 17 00:00:00 2001 From: dlond Date: Mon, 26 May 2025 05:30:45 +1200 Subject: [PATCH] cleanup --- lua/custom/plugins/blink.lua | 9 +++++++++ lua/custom/plugins/init.lua | 4 ++++ lua/custom/plugins/treesitter.lua | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 lua/custom/plugins/blink.lua diff --git a/lua/custom/plugins/blink.lua b/lua/custom/plugins/blink.lua new file mode 100644 index 00000000..32f4748d --- /dev/null +++ b/lua/custom/plugins/blink.lua @@ -0,0 +1,9 @@ +return { + 'saghen/blink.cmp', + opts = { + fuzzy = { + engine = 'lua', -- prevent warning about native lib + max_distance = 2, + }, + }, +} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index f2a2987b..aac28135 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -11,4 +11,8 @@ return { { import = 'custom.plugins.telescope' }, { import = 'custom.plugins.theme' }, { import = 'custom.plugins.treesitter' }, + { + 'nvim-tree/nvim-web-devicons', + lazy = true, + }, } diff --git a/lua/custom/plugins/treesitter.lua b/lua/custom/plugins/treesitter.lua index 39bfce56..84372d1d 100644 --- a/lua/custom/plugins/treesitter.lua +++ b/lua/custom/plugins/treesitter.lua @@ -6,6 +6,8 @@ return { 'nvim-treesitter/nvim-treesitter', -- build = ':TSUpdate', -- Keep build command if needed from kickstart -- main = 'nvim-treesitter.configs', -- Keep if needed from kickstart + event = { 'BufReadPost', 'BufNewFile' }, + build = ':TSUpdate', opts = { -- Use opts to merge/override defaults ensure_installed = { 'bash', @@ -38,6 +40,9 @@ return { -- disable = { 'ruby' }, -- Keep if needed }, }, + config = function(_, opts) + require('nvim-treesitter.configs').setup(opts) + end, -- If kickstart used a config function for treesitter and you need to replicate -- parts of it that aren't handled by opts, add it here. -- config = function(_, opts)