From b65c726cc4f25e5c3c951e549043ebb542530452 Mon Sep 17 00:00:00 2001 From: Steffen Rademacker Date: Thu, 14 Sep 2023 13:21:21 +0200 Subject: [PATCH] vim optimizations and fixes --- nvim/lua/config/cmp.lua | 2 +- nvim/lua/config/telescope.lua | 8 +++----- nvim/lua/plugins.lua | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/nvim/lua/config/cmp.lua b/nvim/lua/config/cmp.lua index c943171e..e8846716 100644 --- a/nvim/lua/config/cmp.lua +++ b/nvim/lua/config/cmp.lua @@ -2,7 +2,7 @@ local cmp = require('cmp') cmp.setup({ completion = { - keyword_length = 3, + keyword_length = 2, }, snippet = { expand = function(args) diff --git a/nvim/lua/config/telescope.lua b/nvim/lua/config/telescope.lua index 904e8173..ccb62bfc 100644 --- a/nvim/lua/config/telescope.lua +++ b/nvim/lua/config/telescope.lua @@ -11,13 +11,11 @@ require('telescope').setup({ extensions = { fzf = { fuzzy = true, -- false will only do exact matching - override_generic_sorter = true, -- override the generic sorter - override_file_sorter = true, -- override the file sorter - case_mode = 'smart_case', -- or "ignore_case" or "respect_case" + override_generic_sorter = true, + override_file_sorter = true, + case_mode = 'smart_case', }, }, }) --- To get fzf loaded and working with telescope, you need to call --- load_extension, somewhere after setup function: require('telescope').load_extension('fzf') diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 9eede7fb..48fb3760 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -4,13 +4,11 @@ local function get_config (key) end -- ensure folke/lazy.nvim is being loaded --- using folke/lazy.nvim as package manager local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system({ 'git', 'clone', '--filter=blob:none', - 'https://github.com/folke/lazy.nvim.git', '--branch=stable', - lazypath, + 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath, }) end vim.opt.rtp:prepend(lazypath)