neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

lua.lua (998B)


      1 vim.bo.efm = [[lua: %f:%l: %m]]
      2 vim.bo.makeprg = [[lua %:S]]
      3 vim.bo.shiftwidth = 2
      4 
      5 vim.keymap.set('n', '<leader>ar', vim.cmd.make)
      6 
      7 if pcall(require, 'lazydev') then
      8   require 'lazydev'.setup()
      9 end
     10 
     11 -- vim.lsp.start {
     12 --   name = 'lua-language-server',
     13 --   cmd = { 'lua-language-server' },
     14 --   capabilities = require 'tms.lsp'.capabilities(),
     15 --   root_dir = vim.fn.getcwd(),
     16 --   settings = {
     17 --     Lua = {
     18 --       runtime = { version = 'LuaJIT' },
     19 --       diagnostics = {
     20 --         --
     21 --         globals = { 'vim' },
     22 --         disable = { 'missing-parameter' },
     23 --       },
     24 --       telemetry = { enable = false },
     25 --       workspace = {
     26 --         checkThirdParty = false,
     27 --         -- slow compared to neodev
     28 --         -- library = vim.api.nvim_get_runtime_file('', true),
     29 --         -- library = { vim.env.VIMRUNTIME },
     30 --       },
     31 --       completion = { callSnippet = 'Replace' },
     32 --     },
     33 --   },
     34 -- }
     35 
     36 vim.api.nvim_set_hl(0, '@lsp.mod.defaultLibrary.lua', { link = 'Special' })