diff --git a/init.lua b/init.lua index 9348b67..50a3b18 100644 --- a/init.lua +++ b/init.lua @@ -46,8 +46,6 @@ vim.cmd [[ nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]')) - tnoremap - autocmd BufEnter * if &buftype == 'terminal' | :startinsert | endif nnoremap ,t vl:terminala " Don't include curdir, it just causes pain. @@ -71,16 +69,10 @@ vim.cmd [[ autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile let g:rustfmt_autosave = 1 -]] -vim.g.c_syntax_for_h = 1 -vim.g.python_indent = { -- Fixes retarded default python indentation. - open_paren = 'shiftwidth()', - nested_paren = 'shiftwidth()', - continue = 'shiftwidth()', - closed_paren_align_last_line = false, - searchpair_timeout = 300, -} + " remove annoying and bad indentation + autocmd FileType * setlocal indentexpr= +]] local function file_exists(name) --{{{1 local f = io.open(name,"r") @@ -312,6 +304,9 @@ require'lazy'.setup{ --{{{1 ensure_installed = "all", sync_install = false, auto_install = true, + indent = { + enable = true, + }, highlight = { enable = true, additional_vim_regex_highlighting = false, @@ -319,6 +314,12 @@ require'lazy'.setup{ --{{{1 } end, }, + { "kdheepak/lazygit.nvim", --{{{2 + lazy = true, + cmd = { "LazyGit", "LazyGitConfig", "LazyGitCurrentFile", "LazyGitFilter", "LazyGitFilterCurrentFile", }, + dependencies = { "nvim-lua/plenary.nvim", }, + keys = { { ",g", "LazyGit", desc = "LazyGit" }, }, + }, { 'mfussenegger/nvim-dap', --{{{2 dependencies = { 'nvim-treesitter/nvim-treesitter',