Commit graph

546 commits

Author SHA1 Message Date
emacspace d545dcbdbe documentation formatting: Wed Dec 30 21:04:48 UTC 2020 2020-12-30 23:41:14 +01:00
Senghoo Kim b2f014107f Make ipython notebook work with company-mode
By using the Jupyter notebook api, the ipython-notebook layer can be auto-completed by using the company-mode
2020-12-30 10:32:10 +01:00
Evan Klitzke c4ad14a73a fix some errors in the lsp readme 2020-12-26 14:59:29 +01:00
Maximilian Wolff f4ee26ce33 [dap] Set bindings after setting prefixes 2020-12-13 21:07:07 +00:00
Thanh Vuong 4b3ab4052a [tide] fix regression caused by e3b6464649
fix jump handler
2020-11-25 09:17:27 +01:00
thanhvg e3b6464649
[core][tide][lsp] improve spacemacs/set-leader-keys-for-minor-mode and apply it to tide and lsp layers (#14141)
* [core][keybinng] improve minor mode binding

This commit added add a new function defun spacemacs/declare-prefix-for-minor-mode
and improved spacemacs/set-leader-keys-for-minor-mode.

`which-key` package recently introduced a new api
which-key-add-keymap-based-replacements which improves perfomance and allows
prefix and namings to be stored directly in keymap. This is a great improvement.

With this new api we now make change to spacemacs/declare-prefix-for-minor-mode
to manage prefix also. For example:

  (spacemacs/set-leader-keys-for-minor-mode 'lsp-mode
    "=" "format"
    "=b" #'lsp-format-buffer)

Before we had to use another api to bind prefix
spacemacs/declare-prefix-for-mode which only works on major-mode. As lsp-mode is
a minor mode this api causes a lot of problems to which-key performance. An
example is https://github.com/syl20bnr/spacemacs/issues/12455 which led to my
hack in https://github.com/syl20bnr/spacemacs/pull/12474.

The improved spacemacs/set-leader-keys-for-minor-mode will take care of both
prefix and key naming for the minor mode. This will allows us to have a better
set up for dynamic minor modes such as lsp-mode, tide-mode etc.

Also another api is created to make prefix for minor mode:
spacemacs/declare-prefix-for-minor-mode.

Usage:
(spacemacs/declare-prefix-for-minor-mode 'tide-mode "E" "errors")"

* [tide] improve prefix

* [lsp] improve prefix
2020-11-21 07:34:55 +01:00
Youmu 483d5493cd Remove eshell obsolete variable
`eshell-buffer-shorthand` was removed in Emacs 25, see https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS.25#L1078-L1082
2020-11-12 22:33:06 +01:00
Maximilian Wolff 24d8d329eb
[LSP] Add documentation for missing functional area "action" 2020-11-09 23:18:57 +01:00
duianto ee45910a0d [ranger] Add nil to ranger-enter-with-minus possible values 2020-10-31 14:43:09 +01:00
emacspace 45691dd545 documentation formatting: Sat Oct 31 08:55:13 UTC 2020 2020-10-31 13:07:55 +01:00
Thanh Vuong 97868ced62 fix #14100
Vterm => VTerm sorry :)
2020-10-31 09:52:49 +01:00
Maximilian Wolff abac41e8d0
Fix small doc typos in shell and latex layers 2020-10-30 21:44:17 +01:00
Thanh Vuong a477ea63ce [shell] new helm/ivy functions to search vterm history
Based on http://xenodium.com/search-bash-history-with-emacs-helm/

Add new helm/ivy functions `spacemacs/helm-vterm-search-history`,
spacemacs/counsel-vterm-search-history to search bash history and insert to
vterm/shell

Bind this function to M-r for vterm

New layer variable spacemacs-vterm-history-file-locatition to customize bash file

Default is nil.

Also bind add counsel-shell-history to `, H` for shell-mode in the same
convention as helm counterpart.

[shell] wip
2020-10-30 21:17:04 +01:00
duianto fa83c0ed5a [ranger] Add 'ranger as an option to ranger-enter-with-minus
Added 'ranger as an option to the variable: ranger-enter-with-minus
Changed the default value from: t to: 'deer.
Bound the key to evil-motion-state-map instead of evil-normal-state-map
so that - also works from the Spacemacs home buffer.
2020-10-30 20:55:04 +01:00
nanashi0x74 c8b717c9be [lsp] Add keybinding for lsp-version command 2020-10-19 11:45:53 +02:00
emacspace 598ac10337 documentation formatting: Thu Oct 15 21:23:44 UTC 2020 2020-10-15 23:33:25 +02:00
Richard Petri e98d865e61 [layers/+tools/languagetool] Allow HTTP server instead of binary 2020-10-15 23:12:41 +02:00
Lucius Hu edc2528590
Improved documentation for LSP layer
- Added documentation for the following minor modes:
  - lsp-headerline-breadcrumb-mode
  - lsp-lens-mode
  - lsp-modeline-diagnostics-mode
  - lsp-modeline-code-actions-mode
- Added description of Code Lens feature.
- Added description of default values of any variablese introduced in the
  commit.
- Added a section to brief mention the DAP integration of lsp-mode, which
  leads users the DAP layer for more details.
- Re-formatted the document, inline codes are quoted by '~' instead of '='.
2020-10-15 22:20:27 +02:00
emacspace 8fff0ea4ee documentation formatting: Sat Oct 3 18:54:32 UTC 2020 2020-10-03 22:24:57 +03:00
JAremko 8227686194 Fix links 2020-10-03 21:52:09 +03:00
JAremko 3c1a58f8c6 add Features HL to LanguageTool readme 2020-10-03 21:52:09 +03:00
duianto 458782656a [pass] Fix travis-ci error on internal link
problem:
The internal link:
-  See [[info:auth#The Unix password store][its info page]] for more details on using it.

Caused an issues with travis-ci:
https://travis-ci.org/github/syl20bnr/spacemacs/jobs/732236190#L332

error: Link "info:auth#The Unix password store" has unknown type "info"

Solution:
Linked to the same page in the online manual.
2020-10-02 22:15:35 +02:00
Daniel Nicolai 5812d52e6d Add instruction how to use ranger by default 2020-09-27 14:34:52 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Elric Milon 964a736cbf
[pass] Add support for auth-source-pass and password-store-otp. (#13950)
Co-authored-by: Elric Milon <whirm@gmx.com>
2020-09-18 21:11:58 +02:00
Maximilian Wolff d8260ea041
[lsp] Fix lsp-origami integration
Looks like the provided hook statement
is not working properly with this package.
I have replaced it with the recommended
way defined in the package itself and
now it seems to work.
2020-09-17 23:54:22 +02:00
Robbert van der Helm 14dcebd4a3 Add a layer for LanguageTool support
LanguageTool is an automated proofreader and grammar checker. This layer adds
the ability to check the current buffer's contents using LanguageTool.
2020-09-17 14:05:20 +02:00
Elric Milon 4c6c6c2e96 [lsp] Add support for lsp-origami 2020-09-16 21:54:00 +02:00
Aaron L. Zeng 2b4fd06dc1 [fasd] Fix bug in fasd-find-directory-only
`fasd-find-file` incorrectly interprets a prefix argument of value 1
as equivalent to nil ([issue][0]).

Work around this bug by just passing another positive number instead.
We choose 2.

[0]: https://framagit.org/steckerhalter/emacs-fasd/-/issues/14
2020-09-14 18:34:38 +02:00
Benjamin Hipple c1650789d6 [ipython] Fix bindinding for RET in transient state
In the documentation, it says this performs execute cell and goto next, while
the code was just executing the cell.

This desync could be fixed in either direction, but executing and going to next
feels more ergonomic while in the transient state, since we're jumping around
running rather than editing in that mode, so I've fixed it to do that.
2020-09-08 20:56:52 +02:00
Maximilian Wolff cd2f56d9dd
[ipython] autoformat with proper elisp settings 2020-09-04 18:40:05 +02:00
Benjamin Hipple 10b39aa3df
[ipython] Fix elisp whitespace
This runs the default spacemacs elisp formatter on buffer save, with no
functional changes. I have further changes I'd like to integrate, but first
want to sweep this large but no-op diff forward.
2020-09-04 18:36:33 +02:00
emacspace 0fda75c688 documentation formatting: Fri Aug 28 21:26:14 UTC 2020 2020-08-28 23:41:29 +02:00
Colin Woodbury 61a9aeb42c [lsp] Remove mention of lsp-clients - fixes #13857 2020-08-19 20:04:39 +02:00
Maximilian Wolff 76301564c5
[cmake] Add lsp server support 2020-08-14 00:29:39 +02:00
Benjamin Yang 0fe36bed57 [shell] Update vterm binding in README
Back in commit ac3752ffd, the binding for `vterm` was updated to fit in with the
rest of the `shell` layer bindings (under `SPC a t s v`).  However, the `README`
was not updated to match.  This commit updates the `README` for the `shell`
layer.

Relates to #13503.
2020-07-18 09:35:11 +02:00
kenkangxgwe 21b3ae20b3
Update key bindings for vterm
* Sending <kbd>Esc</kbd> to vterm using `vterm--self-insert` results in `1;5u`,
using `vterm-send-escape` instead.
* <kbd>Ret</kbd> is not sent by `vterm--self-insert`, using `vterm-send-return`
instead.
2020-07-12 20:41:07 +02:00
Maximilian Wolff ac3752ffd7
Add missing prefixes to global application bindings 2020-07-06 23:13:52 +02:00
Maximilian Wolff b82bc40b3c
Fix ignored popwin declarations
Popwin automatically configures pupo purposes
if properly configured. While I was checking
the existing configs I have found that the
settings will be ignored if the config is not
done via a post-config hook.

A quick search revealed a lot of popwin configs
which never had any effect.

This commit fixes these and with this also
restores the missing pupo configs.
2020-07-03 21:51:33 +02:00
Maximilian Wolff b68b44a1b1
[tern] Remove unmaintained package company-tern
Company tern is not longer on melpa and had to be removed.
See #13725 for details.
2020-07-03 01:18:40 +02:00
Steve Lorimer 70232d9f58 [lsp] remove requirement for yasnippet 2020-07-01 20:42:51 +02:00
Benjamin Yang 91556a33d4 [vagrant] Correctly bind vagrant-tramp-term
According to the README, `SPC a t v t` should start `vagrant-tramp-term`, but
instead, it seems to have been bound to `SPC a t v`.  This means that it
overrode all of the other vagrant keybindings under the prefix `SPC a t v`.

The issue seems to have been a typo from commit e38c33f.

Relates to #13503.
2020-07-01 20:38:48 +02:00
Maximilian Wolff c4e420cf36
[purpose] Document how to properly declare and overwrite purposes
Also refactor purpose config in shell layer to
use the correct `post-init-window-purpose`
function.
2020-06-26 01:10:17 +02:00
emacspace 9ef6505204 documentation formatting: Wed Jun 24 20:50:11 UTC 2020 2020-06-24 23:15:02 +02:00
John Practicalli Stevenson e38c33feb0 [applications] refactor key bindings to tools
refactor key bindings for packages under +layers/tools

Relates to #13503
2020-06-24 22:43:30 +02:00
Maximilian Wolff 5dcf7ae8e6
[terraform] Revise terraform lsp support
Made lsp support for terraform follow the convention
that if not explicitly set the backend shall be
inferred from the loaded layers in the dotfile.
2020-06-22 21:27:12 +02:00
Shunya Ishii 05bc20d806
[terraform] Add LSP support for terraform-lsp 2020-06-22 20:15:12 +02:00
emacspace 78176ff6fa documentation formatting: Sat Jun 20 21:17:28 UTC 2020 2020-06-20 23:38:28 +02:00
Maximilian Wolff a51397b3ce
[meson] Rebind lookup-doc-at-point to major mode specific binding 2020-06-20 21:49:23 +02:00
Matthew Leach 421fca3cea
[meson] add layer to +tools/
Add a new meson layer to the +tools layer set.
This basic layer is a simple wrapper around meson mode.
2020-06-20 21:22:57 +02:00