Some quality of life nvim improvements

master
Jef Roosens 2022-01-18 15:14:03 +01:00
parent da12818fc8
commit c8af8c155a
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
4 changed files with 10 additions and 16 deletions

View File

@ -1,15 +1,15 @@
local g = vim.g
g.ctrlp_map = "<leader>t"
g.ctrlp_use_caching = 1
g.ctrlp_clear_cache_on_exit = 0
g.ctrlp_cache_dir = "./.vim/cache/ctrlp"
-- g.ctrlp_use_caching = 1
-- g.ctrlp_clear_cache_on_exit = 0
-- g.ctrlp_cache_dir = "./.vim/cache/ctrlp"
g.ctrlp_user_command = {
'.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'
}
--Limit max number of files
--This prevents me from indexing my entire HOME by accident
g.ctrlp_max_files = 10000
g.ctrlp_max_files = 1000
--Also limit recursion depth
g.ctrlp_max_depth = 40
g.ctrlp_max_depth = 10

View File

@ -10,7 +10,6 @@ local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.api.nvim_command('packadd packer.nvim')
end
require('packer').startup(function()
@ -57,9 +56,6 @@ require('packer').startup(function()
config = [[require('config.nerdtree')]]
}
-- Better support for toml files
use "cespare/vim-toml"
use "jiangmiao/auto-pairs"
-- Align text

View File

@ -37,15 +37,18 @@ o.smartcase = true
-- Don't highlight search results after search is finished
o.hlsearch = false
local swap_dir = vim.fn.stdpath('data') .. '/swap'
local undo_dir = vim.fn.stdpath('data') .. '/undo'
-- Create swap files
o.swapfile = true
-- Where to store the swap files; I store mine in the current directory
o.directory = "./.vim/swap//"
o.directory = swap_dir
o.backup = false
o.undofile = true
o.undodir = "./.vim/undo//"
o.undodir = undo_dir
o.updatetime = 250

View File

@ -169,11 +169,6 @@ _G.packer_plugins = {
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-surround",
url = "https://github.com/tpope/vim-surround"
},
["vim-toml"] = {
loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-toml",
url = "https://github.com/cespare/vim-toml"
},
vimtex = {
loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vimtex",