summary refs log tree commit diff
path: root/.vim/lua/internal/plugins/gentoo.lua
blob: 2fc868486b8302ffa2f13194cd3a96b3a6c9b914 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
return {
  {
    'gentoo/gentoo-syntax',
    ft = { 'ebuild' },
    init = function()
      vim.api.nvim_create_autocmd('LspAttach', {
        callback = function(args)
          if vim.opt.filetype == 'ebuild' then
            vim.lsp.stop_client(vim.lsp.get_clients({ bufnr = args.bufnr }))
          end
        end,
      })
    end,
  },
}