diff --git a/vim/.vim/lua/config/init.lua b/vim/.vim/lua/config/init.lua new file mode 100644 index 0000000..5cabbf9 --- /dev/null +++ b/vim/.vim/lua/config/init.lua @@ -0,0 +1,3 @@ +require("config.zip") +require("config.clipboard") +require("config.tmpl") diff --git a/vim/.vim/lua/plugins/telescope.lua b/vim/.vim/lua/plugins/telescope.lua index 0ac7c7b..b37d5aa 100644 --- a/vim/.vim/lua/plugins/telescope.lua +++ b/vim/.vim/lua/plugins/telescope.lua @@ -108,7 +108,7 @@ return { require("telescope").load_extension("recent_files") end, keys = { - { "to", require('telescope').extensions.recent_files.pick }, + { "to", [[lua require('telescope').extensions.recent_files.pick()]] }, }, }, { diff --git a/vim/.vimrc b/vim/.vimrc index 16727da..3f8df5a 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -2,11 +2,6 @@ set nocompatible " be iMproved, required let mapleader="," " BEST LEADER OF ALL TIME (BLOT) filetype off " required -set runtimepath+=,~/.vim -set runtimepath+=,~/.vim/after -set runtimepath+=,~/.vim/lua/ -set runtimepath+=,~/.config/nvim/after/ -let &runtimepath = &runtimepath set directory=/tmp set undofile @@ -57,12 +52,6 @@ set modifiable set noscrollbind set expandtab -" map "" -map "" -map "" - -set updatetime=100 - source ~/.vim/prefs/mappings.vim source ~/.vim/prefs/leader.vim @@ -86,23 +75,6 @@ let g:lsp_log_file = expand('~/vim-lsp.log') "Don't ask to save when changing buffers (i.e. when jumping to a type definition) set hidden -function! GenerateUnicode(first, last) - let i = a:first - while i <= a:last - if (i%256 == 0) - $put ='----------------------------------------------------' - $put =' 0 1 2 3 4 5 6 7 8 9 A B C D E F ' - $put ='----------------------------------------------------' - endif - let c = printf('%04X ', i) - for j in range(16) - let c = c . nr2char(i) . ' ' - let i += 1 - endfor - $put =c - endwhile -endfunction - " makes sure that when opening, files are normal, i.e. not folded. set nofoldenable @@ -122,7 +94,5 @@ let g:loaded_netrwPlugin = 0 let g:loaded_tutor_mode_plugin = 0 let g:loaded_remote_plugins = 1 -au BufRead,BufNewFile,BufReadPost *.cc.inc set filetype=cpp - filetype plugin indent on syntax on