diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3,6 +3,16 @@ if vim.fn.executable('nvr') == 0 then vim.api.nvim_command('!pip3 install --user --break-system-packages neovim-remote') end +-- Options to add `gf` functionality inside `.lua` files. +-- https://github.com/sam4llis/nvim-lua-gf/blob/ca712497b2bab6351518917be219e9bfd8d63e4f/after/ftplugin/lua.lua +_G.vim.opt_local.include = [[\v<((do|load)file|require)[^''"]*[''"]\zs[^''"]+]] +_G.vim.opt_local.includeexpr = "substitute(v:fname,'\\.','/','g')" +for _, path in pairs(_G.vim.api.nvim_list_runtime_paths()) do +_G.vim.opt_local.path:append(path .. '/lua') +end +_G.vim.opt_local.suffixesadd:prepend('.lua') + + -- Load plugins require('keymaps') require('basics') |