init.lua (1083B)
1 vim.g.mapleader = ' ' 2 local set = vim.opt 3 local g = vim.g 4 5 g.loaded_node_provider = 0 6 g.loaded_ruby_provider = 0 7 g.loaded_perl_provider = 0 8 g.loaded_python3_provider = 0 9 10 require'keybindings' 11 12 set.tabstop=4 13 set.shiftwidth=4 14 set.cursorline=true 15 set.cursorlineopt="number" 16 set.laststatus=2 17 set.wildignore:append("out/**") 18 19 set.exrc=true 20 21 set.hlsearch=true 22 set.incsearch=true 23 set.wrapscan=false 24 25 set.shortmess="Iat" 26 27 g.netrw_banner = 0 28 g.netrw_liststyle = 3 29 30 vim.cmd([[ 31 source $XDG_DATA_HOME/vim/hyper-red.vim 32 source $XDG_DATA_HOME/vim/plugin.vim 33 ]]) 34 35 function load_plugns() 36 vim.cmd([[ 37 packadd vim-fugitive 38 packadd vim-ninja-feet 39 packadd vim-surround 40 packadd vim-tmux-navigator 41 packadd vim-unimpaired 42 packadd vim-xcode 43 packadd vim-dispatch 44 ]]) 45 --require"dapui".setup() 46 --require"lspconfig".clangd.setup{} 47 --require"unstaged" 48 49 --require('dap').adapters.cppdbg = { 50 -- type = 'executable', 51 -- command = 'lldb-vscode', 52 -- name = 'cppdbg' 53 --} 54 55 --require('dap.ext.vscode').load_launchjs(nil, { cppdbg = {'c', 'cpp'} }) 56 end 57 58 vim.defer_fn(function() load_plugns() end, 20) 59