lua.lua (496B)
1 local set = vim.opt_local 2 3 set.efm = [[lua: %f:%l: %m]] 4 set.makeprg = [[lua %:S]] 5 set.shiftwidth = 2 6 7 vim.keymap.set('n', '<leader>ar', vim.cmd.make) 8 9 if pcall(require, 'lazydev') then 10 require 'lazydev'.setup { 11 library = { 12 -- See the configuration section for more details 13 -- Load luvit types when the `vim.uv` word is found 14 { path = "${3rd}/luv/library", words = { "vim%.uv" } }, 15 } 16 } 17 end 18 19 vim.api.nvim_set_hl(0, '@lsp.mod.defaultLibrary.lua', { link = 'Special' })