diff --git a/lua/config/autosource.lua b/lua/config/autosource.lua new file mode 100644 index 0000000..2c6534e --- /dev/null +++ b/lua/config/autosource.lua @@ -0,0 +1,3 @@ +local user = os.getenv("USER") +vim.g.autosource_hashdir = '/home/'..user..'/.cache/vim-autosource/hashes' + diff --git a/lua/options.lua b/lua/options.lua index 84db9d9..42a2b69 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -40,10 +40,6 @@ opt('clipboard', 'unnamedplus') -- Amount of time after which while typing mapping will be canceled opt('timeoutlen', 300) --- Load external project specific configs -opt('exrc', true) -opt('secure', true) - -- How whitespace characters should be displayed opt('listchars', [[space:.,eol:$,tab:>-]]) diff --git a/lua/plugins.lua b/lua/plugins.lua index b41d715..a960c67 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -167,6 +167,9 @@ local function usePlugins(use, use_rocks) -- Status line and tab line use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]} + + -- Load project specific settings from exrc + use { 'jenterkin/vim-autosource', config = [[require 'config.autosource']] } end -- Register custom commands for plugin manager