Home Gen374 @ 2024-10-23-13:10
This commit is contained in:
parent
680588aad1
commit
65c32014c0
@ -136,7 +136,20 @@
|
|||||||
(setq ccls-initialization-options '(:index (:comments 2) :completion (:detailedLabel t) :compilationDatabaseDirectory "build" :cache (:directory ".cache/ccls" :format "binary")))
|
(setq ccls-initialization-options '(:index (:comments 2) :completion (:detailedLabel t) :compilationDatabaseDirectory "build" :cache (:directory ".cache/ccls" :format "binary")))
|
||||||
(set-lsp-priority! 'ccls 1))
|
(set-lsp-priority! 'ccls 1))
|
||||||
|
|
||||||
(map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map)
|
(defun my-ui-doc-glance-then-focus ()
|
||||||
:desc "Show Doc-UI" :n "C-h" #'lsp-ui-doc-glance)
|
"Glances UI-Doc if not present, otherwise focus"
|
||||||
|
(interactive)
|
||||||
|
(if lsp-ui-doc--bounds
|
||||||
|
(progn
|
||||||
|
(lsp-ui-doc-hide)
|
||||||
|
(lsp-ui-doc-show)
|
||||||
|
(lsp-ui-doc-focus-frame))
|
||||||
|
(lsp-ui-doc-glance)))
|
||||||
|
|
||||||
|
(map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map)
|
||||||
|
:desc "Show Doc-UI" :n "C-h" #'my-ui-doc-glance-then-focus)
|
||||||
|
|
||||||
|
|
||||||
|
;; Bind C-h to the handler function
|
||||||
|
(map! "C-h" #'my-c-h-handler)
|
||||||
(set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode))
|
(set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode))
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
{config, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.dunst.settings = {
|
services.dunst.settings = {
|
||||||
global = {
|
global = {
|
||||||
origin = "top-right";
|
origin = "top-right";
|
||||||
@ -9,6 +13,10 @@
|
|||||||
offset = "20x50";
|
offset = "20x50";
|
||||||
force_xwayland = true;
|
force_xwayland = true;
|
||||||
corner_radius = 15;
|
corner_radius = 15;
|
||||||
|
dmenu = "${pkgs.wofi}/bin/wofi --dmenu";
|
||||||
|
mouse_left_click = "do_action, close_current";
|
||||||
|
mouse_middle_click = "close_current";
|
||||||
|
mouse_right_click = "close_all";
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user