-
Hi, I created with This seemed to work fine. The beginning of the files look like In total I have 9735 lines; the file got initially created in the build directory; I copied it now to the project root directory. Starting Though it seems that the This is my main setup (use-package lsp-mode
:straight t
:defer t
:init
(setq lsp-keymap-prefix "C-c l")
(add-to-list 'exec-path fb/conda-env-home-directory)
(setq lsp-prefer-flymake nil)
:hook ((lsp-mode . lsp-enable-which-key-integration))
:commands (lsp lsp-deferred)
:config
(add-hook 'c-mode-hook 'lsp)
(add-hook 'c++-mode-hook 'lsp)
(add-hook 'c-mode--hook #'lsp-clangd-c-enable)
(add-hook 'c++-mode-hook #'lsp-clangd-c++-enable)
(add-hook 'objc-mode-hook #'lsp-clangd-objc-enable)
(setq lsp-clangd-binary-path fb/clangd-exe)
(setq lsp-clients-clangd-executable fb/clangd-exe)
(setq lsp-clients-fortls-executable fb/lsp-clients-fortls-executable)
(setq lsp-clients-fortls-args fb/lsp-clients-fortls-args)
(setq lsp-print-io t)
(setq lsp-signature-auto-activate t)
(setq lsp-signature-render-documentation t)
(setq lsp-enable-symbol-highlighting t)
(setq lsp-lens-enable t)
(setq lsp-headerline-breadcrumb-enable t)
(setq lsp-idle-delay 0.5
lsp-enable-symbol-highlighting t
lsp-enable-snippet nil
lsp-pyls-plugins-flake8-enabled t)
(add-to-list 'lsp-language-id-configuration '(fortran-mode . "fortran"))
(add-to-list 'lsp-language-id-configuration '(F90-mode . "fortran"))
(lsp-register-custom-settings
'(("pyls.plugins.pyls_mypy.enabled" t t)
("pyls.plugins.pyls_mypy.live_mode" nil t)
("pyls.plugins.pyls_black.enabled" t t)
("pyls.plugins.pyls_isort.enabled" t t)
;; Disable these as they're duplicated by flake8
("pyls.plugins.pycodestyle.enabled" nil t)
("pyls.plugins.mccabe.enabled" nil t)
("pyls.plugins.pyflakes.enabled" nil t)))
) I saw the discussion here and the guide to setup for c++, but it seems I am missing how to activate the recognition for the https://github.com/emacs-lsp/lsp-mode/discussions/2968 Does anyone have a suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Some further information using |
Beta Was this translation helpful? Give feedback.
-
do you get any output in the |
Beta Was this translation helpful? Give feedback.
-
It seem to work now... the compile_commands.json file was not complete. It has now roughly 150k lines. |
Beta Was this translation helpful? Give feedback.
It seem to work now... the compile_commands.json file was not complete. It has now roughly 150k lines.
Thank you for your help!