From dcc04837d4f2479f8b31e728a59f93ab27d58903 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 26 Jun 2021 07:38:44 +0530 Subject: [PATCH] disable some inbuilt plugins --- lua/misc-utils.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lua/misc-utils.lua b/lua/misc-utils.lua index 40f27cc..c3bd7fd 100644 --- a/lua/misc-utils.lua +++ b/lua/misc-utils.lua @@ -35,6 +35,19 @@ opt("b", "expandtab", true) opt("b", "shiftwidth", 2) opt("b", "smartindent", true) +-- disable builtin vim plugins + +vim.g.loaded_gzip = 0 +vim.g.loaded_tar = 0 +vim.g.loaded_tarPlugin = 0 +vim.g.loaded_zipPlugin = 0 +vim.g.loaded_2html_plugin = 1 +vim.g.loaded_netrw = 0 +vim.g.loaded_netrwPlugin = 0 +vim.g.loaded_matchit = 1 +vim.g.loaded_matchparen = 1 +vim.g.loaded_spec = 1 + local M = {} function M.is_buffer_empty() @@ -46,6 +59,7 @@ function M.has_width_gt(cols) -- Check if the windows width is greater than a given number of columns return vim.fn.winwidth(0) / 2 > cols end + -- file extension specific tabbing -vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]]) +-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]]) return M