From b1cb99daefdd9bd3637481b230499fdfcc1205c0 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 10 Oct 2021 11:51:18 +0200 Subject: vim some minor cleanup --- .config/nvim/init.vim | 11 ++--------- .config/nvim/lua/after.lua | 6 ++++++ .config/nvim/lua/opts.lua | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 .config/nvim/lua/after.lua (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 3fc0aef..6c49d67 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -16,15 +16,7 @@ if has('persistent_undo') endif lua require 'init' - -lua << EOF -require 'colorizer'.setup { - '*'; - '!vim'; - css = { rgb_fn = true; }; - html = { names = false; } -} -EOF +lua require 'after' let g:ascii = [ \ '', @@ -43,4 +35,5 @@ let g:ascii = [ \ '', \] let g:startify_custom_header = startify#pad(g:ascii) + " autocmd FileType markdown lua require('cmp').setup.buffer { enabled = false } diff --git a/.config/nvim/lua/after.lua b/.config/nvim/lua/after.lua new file mode 100644 index 0000000..454acee --- /dev/null +++ b/.config/nvim/lua/after.lua @@ -0,0 +1,6 @@ +require'colorizer'.setup { + '*'; + '!vim'; + css = { rgb_fn = true; }; + html = { names = false; } +} diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index 184900a..520184e 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -111,7 +111,7 @@ require'nvim-treesitter.configs'.setup { require("toggleterm").setup{ -- size can be a number or function which is passed the current terminal - size = 75, + size = 65, open_mapping = [[]], hide_numbers = true, -- hide the number column in toggleterm buffers persist_size = true, -- cgit v1.2.3-70-g09d2