repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim/ftplugin/lua.lua

Raw
-- conceal some syntax with pretty symbols and show them only in
-- insert mode. see after/queries/lua/highlights.scm for more.
vim.opt_local.conceallevel = 2
vim.opt_local.concealcursor = 'nc'

-- Options to add `gf` functionality inside `.lua` files.
vim.opt_local.include = [[\v<((do|load)file|require)[^''"]*[''"]\zs[^''"]+]]
vim.opt_local.includeexpr = "substitute(v:fname,'\\.','/','g')"
for _, path in pairs(vim.api.nvim_list_runtime_paths()) do
  vim.opt_local.path:append(path .. '/lua')
end
vim.opt_local.suffixesadd:prepend '.lua'