feat: add plugin autosource
This commit is contained in:
parent
e4cf031477
commit
b18f77d679
3
lua/config/autosource.lua
Normal file
3
lua/config/autosource.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
local user = os.getenv("USER")
|
||||||
|
vim.g.autosource_hashdir = '/home/'..user..'/.cache/vim-autosource/hashes'
|
||||||
|
|
@ -40,10 +40,6 @@ opt('clipboard', 'unnamedplus')
|
|||||||
-- Amount of time after which while typing mapping will be canceled
|
-- Amount of time after which while typing mapping will be canceled
|
||||||
opt('timeoutlen', 300)
|
opt('timeoutlen', 300)
|
||||||
|
|
||||||
-- Load external project specific configs
|
|
||||||
opt('exrc', true)
|
|
||||||
opt('secure', true)
|
|
||||||
|
|
||||||
-- How whitespace characters should be displayed
|
-- How whitespace characters should be displayed
|
||||||
opt('listchars', [[space:.,eol:$,tab:>-]])
|
opt('listchars', [[space:.,eol:$,tab:>-]])
|
||||||
|
|
||||||
|
@ -167,6 +167,9 @@ local function usePlugins(use, use_rocks)
|
|||||||
|
|
||||||
-- Status line and tab line
|
-- Status line and tab line
|
||||||
use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]}
|
use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]}
|
||||||
|
|
||||||
|
-- Load project specific settings from exrc
|
||||||
|
use { 'jenterkin/vim-autosource', config = [[require 'config.autosource']] }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register custom commands for plugin manager
|
-- Register custom commands for plugin manager
|
||||||
|
Loading…
Reference in New Issue
Block a user