summary refs log tree commit diff
path: root/.vim/lua/internal/plugins/gentoo.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-04-30 13:14:22 +0200
committerRobert Günzler <r@gnzler.io>2025-04-30 13:14:22 +0200
commit6a1810f4dfe4ac22dfbaf2b98fb7618fd76eb761 (patch)
treed9cc1046e3305476e2eea284fbdafde049cf3e10 /.vim/lua/internal/plugins/gentoo.lua
parent59bdb9bc3f7b06b886a24def842f62f350f1411b (diff)
vim: misc updates
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rw-r--r--.vim/lua/internal/plugins/gentoo.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.vim/lua/internal/plugins/gentoo.lua b/.vim/lua/internal/plugins/gentoo.lua
index 142374c..2fc8684 100644
--- a/.vim/lua/internal/plugins/gentoo.lua
+++ b/.vim/lua/internal/plugins/gentoo.lua
@@ -1,11 +1,11 @@
 return {
   {
     'gentoo/gentoo-syntax',
-    lazy = false,
-    config = function()
+    ft = { 'ebuild' },
+    init = function()
       vim.api.nvim_create_autocmd('LspAttach', {
         callback = function(args)
-          if vim.bo.filetype == 'ebuild' then
+          if vim.opt.filetype == 'ebuild' then
             vim.lsp.stop_client(vim.lsp.get_clients({ bufnr = args.bufnr }))
           end
         end,