Commit Graph
16 Commits
Author SHA1 Message Date
Waffles 552cc79a6d Changing to system redis 2023-01-07 11:06:10 -08:00
Waffles 756ca19d8f Fix typo 2023-01-07 09:20:38 -08:00
Waffles ca4cac005d Add support for redis 2023-01-07 09:10:14 -08:00
Waffles 7ec729d912 Add a script to rebuild the feeds if redis fails 2023-01-06 09:32:46 -08:00
Waffles 43f041b6ad setup redis 2023-01-06 08:34:39 -08:00
Waffles 82205ccdb6 -- Completion Plugin Setup
local cmp = require'cmp'
cmp.setup({
  -- Enable LSP snippets
  snippet = {
    expand = function(args)
        vim.fn["vsnip#anonymous"](args.body)
    end,
  },
  mapping = {
    ['<C-p>'] = cmp.mapping.select_prev_item(),
    ['<C-n>'] = cmp.mapping.select_next_item(),
    -- Add tab support
    ['<S-Tab>'] = cmp.mapping.select_prev_item(),
    ['<Tab>'] = cmp.mapping.select_next_item(),
    ['<C-S-f>'] = cmp.mapping.scroll_docs(-4),
    ['<C-f>'] = cmp.mapping.scroll_docs(4),
    ['<C-Space>'] = cmp.mapping.complete(),
    ['<C-e>'] = cmp.mapping.close(),
    ['<CR>'] = cmp.mapping.confirm({
      behavior = cmp.ConfirmBehavior.Insert,
      select = true,
    })
  },
  -- Installed sources:
  sources = {
    { name = 'path' },                              -- file paths
    { name = 'nvim_lsp', keyword_length = 3 },      -- from language server
    { name = 'nvim_lsp_signature_help'},            -- display function signatures with current parameter emphasized
    { name = 'nvim_lua', keyword_length = 2},       -- complete neovim's Lua runtime API such vim.lsp.*
    { name = 'buffer', keyword_length = 2 },        -- source current buffer
    { name = 'vsnip', keyword_length = 2 },         -- nvim-cmp source for vim-vsnip
    { name = 'calc'},                               -- source for math calculation
  },
  window = {
      completion = cmp.config.window.bordered(),
      documentation = cmp.config.window.bordered(),
  },
  formatting = {
      fields = {'menu', 'abbr', 'kind'},
      format = function(entry, item)
          local menu_icon ={
              nvim_lsp = 'λ',
              vsnip = '⋗',
              buffer = 'Ω',
              path = '🖫',
          }
          item.menu = menu_icon[entry.source.name]
          return item
      end,
Changed to new server and had to make some changes
2023-01-05 21:24:35 -08:00
Waffles 5de86be501 Add missing file 2023-01-04 00:26:50 -08:00
Waffles d9a7331373 Allow sidekiq and puma to co-exist 2023-01-04 00:26:23 -08:00
Waffles a756ef3cd8 Fixing up all of the things to make frontend work 2023-01-03 23:20:47 -08:00
Waffles e18a229b76 redis server 2023-01-03 20:15:14 -08:00
Waffles 6d6e24d07f Gate the maintenance.yml file by hostname 2023-01-03 18:47:25 -08:00
Waffles bc08d22f34 Enable cronjob for trimming storage 2023-01-03 16:41:27 -08:00
Waffles 800fa074bb Add a script for trimming storage 2023-01-03 16:31:04 -08:00
Waffles f3a6038031 Reference a variable when checking out mastodon repo 2022-12-28 00:54:57 -08:00
Waffles 8593bf2e7a Move swap management out of mastodon role and into yttrx role 2022-12-26 22:59:02 -08:00
Waffles 19ebda26b4 Initial commit 2022-12-21 22:30:01 -08:00