This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/neovim/init.lua

34 lines
760 B
Lua
Raw Normal View History

2021-07-04 11:01:15 -05:00
vim.g.vimdir = os.getenv('XDG_CONFIG_HOME') .. '/nvim'
2021-05-31 22:17:04 -05:00
-- TODO: learn about the wildmenu `q:`
2021-06-13 11:02:27 -05:00
-- TODO: what is `let &fcs = 'eob: '` for?
2021-06-01 22:29:17 -05:00
2021-06-13 11:02:27 -05:00
require('plugins').setup()
require'options'
require'keymap'
2021-07-04 11:01:15 -05:00
require('fold').setup()
-- require('lsp').setup()
require('statusline').setup()
local plugin_setups = {
telescope = {
defaults = {
mappings = {i = {['c-u'] = false, ['c-d'] = false}},
generic_sorter = require('telescope.sorters').get_fzy_sorter,
file_sorter = require('telescope.sorters').get_fzy_sorter,
}
},
}
2021-06-13 11:02:27 -05:00
2021-07-04 11:01:15 -05:00
for k,v in pairs(plugin_setups) do
if type(v) == 'function' then
v(require(k))
elseif type(v) == 'table' then
require(k).setup(v)
elseif type(v) == 'string' then
require(k)[v]()
elseif v == true then
require(k)
2021-06-13 11:02:27 -05:00
end
end