summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-04-04 08:22:25 +0200
committerAlan Pearce2023-04-04 08:22:25 +0200
commitf83da46fdc6558f072b6cbadc58eb8e1e8775a79 (patch)
tree8297a2443d627a6ed45358c50cb7950dcade9d07 /user/emacs
parent847af325e3890c185e3faf26c22b036e2ef75ed7 (diff)
downloadnixfiles-f83da46fdc6558f072b6cbadc58eb8e1e8775a79.tar.lz
nixfiles-f83da46fdc6558f072b6cbadc58eb8e1e8775a79.tar.zst
nixfiles-f83da46fdc6558f072b6cbadc58eb8e1e8775a79.zip
emacs: fix display issues with code completion popups
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index ae17d7c5..5f2ae4e4 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -480,6 +480,12 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             "S-TAB" #'company-select-previous
             "<backtab>" #'company-select-previous))
 
+(use-package company-posframe
+  :after company
+  :config (progn
+            (when (display-graphic-p)
+              (company-posframe-mode +1))))
+
 (use-package all-the-icons
   :defer t
   :config (setq all-the-icons-color-icons nil))