From 2dd99fd1da2f67767145554dfed1ba7c70dd57e8 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 06 Jan 2022 22:23:29 +0000
Subject: [PATCH] Updated helm config

---
 config.org |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/config.org b/config.org
index a75203b..256d756 100644
--- a/config.org
+++ b/config.org
@@ -176,15 +176,15 @@
            ("C-x b" . helm-mini)
            ("C-c h o" . helm-occur))
     :config
-    (setq helm-M-x-fuzzy-match t)
-    (setq helm-buffers-fuzzy-matching t
-          helm-recentf-fuzzy-match    t)
-    (setq helm-split-window-in-side-p           t ; open helm buffer inside current window, not occupy whole other window
+    (setq helm-mode-fuzzy-match                 t
+          helm-completion-in-regionfuzzy-match  t
+          helm-split-window-inside-p            t ; open helm buffer inside current window, not occupy whole other window
           helm-move-to-line-cycle-in-source     t ; move to end or beginning of source when reaching top or bottom of source.
           helm-ff-search-library-in-sexp        t ; search for library in `require' and `declare-function' sexp.
           helm-scroll-amount                    8 ; scroll 8 lines other window using M-<next>/M-<prior>
           helm-ff-file-name-history-use-recentf t
-          helm-echo-input-in-header-line t)
+          helm-echo-input-in-header-line        t
+          completion-styles                     '(flex))
     (defun spacemacs//helm-hide-minibuffer-maybe ()
       "Hide minibuffer in Helm session if we use the header line as input field."
       (when (with-helm-buffer helm-echo-input-in-header-line)
@@ -198,7 +198,12 @@
               'spacemacs//helm-hide-minibuffer-maybe)
     (helm-mode 1))
 #+END_SRC
-
+*** Helm git
+Give helm git awareness.
+#+BEGIN_SRC emacs-lisp
+  (use-package helm-ls-git
+    :bind (("C-x C-d" . helm-browse-project)))
+#+END_SRC
 ** Projectile
 Projectile is project management framework for emacs.
 Helps in navigation and management of projects.
@@ -796,7 +801,8 @@
              rust-mode
              sh-mode
              ;; verilog-mode
-             go-mode) . lsp))
+             go-mode
+             python-mode) . lsp))
     :init
     (setq lsp-keymap-prefix "C-c l")
     :commands lsp
@@ -1030,9 +1036,9 @@
                                              "BreakBeforeBraces: Linux,"
                                              "AllowShortIfStatementsOnASingleLine: false,"
                                              "IndentCaseLabels: false}"))))
-
-  (use-package clang-format
-    :hook (c-mode-common . (set-clang-format-style)))
+  (add-hook 'c-mode-common-hook 'set-clang-format-style)
+  
+  (use-package clang-format)
 
   ;;   (defun clang-format-on-save ()
   ;;     (add-hook 'before-save-hook 'clang-format-buffer nil t))
@@ -1275,6 +1281,15 @@
 #+BEGIN_SRC emacs-lisp
   (use-package company-go)
 #+END_SRC
+*** Python
+**** COMMENT LSP server
+Use jedi, idk why.
+#+BEGIN_SRC emacs-lisp
+  (use-package lsp-jedi
+    :config
+    (add-to-list 'lsp-disabled-clients 'pyls)
+    (add-to-list 'lsp-enabled-clients 'jedi))
+#+END_SRC
 * Org mode
 ** Up to date org
 Pull the latest org mode from the repository, rather than the org which comes with emacs.
@@ -1363,7 +1378,8 @@
 Call pandoc on org buffer from org export.
 Need to add ~#+OPTIONS: H:99~ to enable large level header exports.
 #+BEGIN_SRC emacs-lisp
-  (use-package ox-pandoc)
+  (when (executable-find "pandoc")
+    (use-package ox-pandoc))
 #+END_SRC
 
 *** COMMENT Dokuwiki Wiki

--
Gitblit v1.9.3