From 4591fc8a8bade0ea12338b1751f3fb273db163a9 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Oct 2021 18:29:32 +0200 Subject: Some vim+nvim config cleanup + simple vim statusbar --- .config/nvim/lua/opts.lua | 9 ++++----- .config/nvim/lua/setup.lua | 21 +++++---------------- 2 files changed, 9 insertions(+), 21 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index 157c899..56f066a 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -127,13 +127,12 @@ require'nvim-treesitter.configs'.setup { } require("toggleterm").setup{ - -- size can be a number or function which is passed the current terminal - size = 65, + size = 15, open_mapping = [[]], - hide_numbers = true, -- hide the number column in toggleterm buffers + hide_numbers = true, persist_size = true, - direction = 'vertical', - close_on_exit = true, -- close the terminal window when the process exits + direction = 'horizontal', + close_on_exit = true, } require('kommentary.config').use_extended_mappings() diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 5d71554..8c59b41 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -1,22 +1,11 @@ local set = vim.opt -if vim.fn.has('mouse') then - set.mouse = "a" -end - -if vim.fn.has('filetype') then - vim.cmd('filetype indent plugin on') -end - -if vim.fn.has('syntax') then - vim.cmd('syntax on') -end - -if vim.fn.has('persistent_undo') then - vim.cmd('set undodir=$HOME/.vim/undo') - vim.cmd('set undofile') -end +vim.cmd('filetype indent plugin on') +vim.cmd('syntax enable') +vim.cmd('set undodir=$HOME/.vim/undo') +vim.cmd('set undofile') +set.mouse = "a" set.termguicolors = true set.hidden = true set.wildmenu = true -- cgit v1.2.3-70-g09d2