Commit Graph

617 Commits

Author SHA1 Message Date
16a17ad970 tools/lsp: start lsp server unconditionally
Part 2 of f6d3ee588, in order for server restarting to work, since
shutting down the server doesn't turn off lsp-mode.
2019-11-02 15:50:26 -04:00
f6d3ee5889 tools/lsp: fix lsp-workspace-restart 2019-11-02 15:50:02 -04:00
762c374198 Rename +eval-overlay-max-lines -> +eval-popup-min-lines
Generalize variable.
2019-10-29 18:19:02 -04:00
5e6363f025 tools/magit: invalidate projectile cache on git checkout 2019-10-29 11:36:46 -04:00
196c716c74 tools/lsp: fix void-function (setf lsp--workspace-shutdown-action)) #1965 2019-10-29 11:36:46 -04:00
3c6f48f9ec Move evil & corrective keybinds to respective modules
Keybinds that correct behavior or provide or extend vim functionality
were moved to their respective modules, or to the :editor evil module.

Keybinds in the global space, that are particularly opinionated but
potentially harmful or imposing as a default, or likely for users to
change (like leader keys), are kept in config/default.
2019-10-26 23:44:28 -04:00
c360f0dceb Minor refactor & comment/docstring revision 2019-10-26 23:44:28 -04:00
71e85b4d58 tools/lsp: update README 2019-10-26 04:05:34 -04:00
d2fe021bd9 tools/eval: display in minibuffer if below threshold
If it's just a couple lines, display in minibuffer instead.
2019-10-26 03:54:09 -04:00
36c9f7c333 tools/eval: fix popup when +overlay is disabled 2019-10-26 03:53:54 -04:00
a78e89bbf8 tools/eval: update README 2019-10-26 02:12:58 -04:00
84a063ca78 tools/eval: add +overlay feature
Now, inline evaluation will display results in an overlay next to the
cursor, rather than in the minibuffer (unless it gets too big, in which
case it'll use a popup buffer).
2019-10-26 02:12:58 -04:00
187c9857c4 Don't clone editorconfig's submodules
They're only unit tests.
2019-10-26 00:35:47 -04:00
54559d567a tools/magit: hide modeline in magit-popups
Since magit-gitflow still uses the old magit-popups, rather than
transient.
2019-10-25 02:38:15 -04:00
923a0a58b6 tools/flycheck: prevent flycheck popup buffer taking focus
When tooltip/childframe is off, long errors can spawn a popup window
that, by default, will steal input focus. No more!

Reported by @rgrinberg
2019-10-25 02:38:04 -04:00
a940d07e4b tools/eval: minor refactors 2019-10-24 19:23:17 -04:00
bcdf5eb19a tools/eval: gr now sends to REPL if one is open #1941
And polish other evil repl commands + add docstrings.
2019-10-24 16:56:53 -04:00
1030f66c24 Revert 438caf276 (#1943)
This was fixed upstream in emacs-lsp/lsp-mode#1135
2019-10-24 13:31:08 -04:00
42421a765d Avoid fallback completion if lsp--buffer-deferred 2019-10-23 22:08:28 -04:00
0b67251159 tools/eval: associate plist with repl handlers
Also consolidates all REPLs (opened through the :tools eval module)
under one popup rule, which inhibits ESC from prematurely closing
them (#1944), and cleans up after their buffers *only* if their handlers
weren't specified to :persist, e.g.

  (set-repl-handler! 'some-mode #'some-repl-handler :persist t)

Also standardized ESS's REPL commands.
2019-10-23 21:41:23 -04:00
438caf276b tools/lsp: fix lsp in js scripts w/ no file ext #1943 2019-10-23 18:29:30 -04:00
cfcaad4bfc tools/eval: don't select window after send-to-repl #1941
Also:

- Refactors REPL logic
- Open-repl commands now copy selection to new REPL and select
  them (without executing them).
- Send-to-repl now auto-executes by default. Prefix arg = don't auto
  execute
2019-10-23 14:08:15 -04:00
b7e2c7509f tools/lsp: deregister workspace shutdown action
...if workspace buffers are present during the deferred shutdown.
2019-10-23 00:51:09 -04:00
cba645be00 tools/lsp: defer server shutdown
To give theu ser a chance to open othe rproject files before the server
is auto-killed.
2019-10-21 19:01:57 -04:00
c034bfdc87 tools/lsp: minor refactor & comment variables
Also moves lsp-fsharp-server-install-dir to
~/.emacs.d/.local/etc/lsp-fsharp
2019-10-21 19:01:06 -04:00
8dfc4b3033 tools/lsp: prompt for project if one can't be guessed #1928
And don't recognize $HOME as a valid project root.
2019-10-21 18:29:11 -04:00
0cca037448 tools/lsp: log project root when starting lsp #1928 2019-10-21 18:28:45 -04:00
2b43558445 tools/flycheck: display popups a little faster 2019-10-20 19:57:46 -04:00
6fab07a2e7 tools/editorconfig: detect elisp & js shell scripts
(And sort +editorconfig-mode-alist alphabetically)
2019-10-20 19:57:28 -04:00
e0469e14c0 Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
7f0ca974e9 tools/magit: free up 0-4 keys for evil & bind g=
- Replaces 0 with g= (magit-diff-default-context)
- Unbinds 1-4 keys so you can use numbered motions in magit buffers
  again
2019-10-20 10:58:52 -04:00
ad677433ef tools/flycheck: inhibit popups when company is in use
Should only appear if in normal mode or, if evil is disabled, when
company isn't active.
2019-10-20 10:58:44 -04:00
8b5b3deaba tools/flycheck: only check on file save/open 2019-10-19 22:22:50 -04:00
c6121b98b5 tools/flyspell: enable flyspell-mode in text modes 2019-10-19 14:03:32 -04:00
4860bb86ce tools/direnv: only update on major mode change
Rather than on buffer-switch. This makes switching windows much faster,
but introduces a (low) risk of a stale environment. Needs more testing.
2019-10-18 22:34:41 -04:00
2d2413d293 tools/lsp: defer lsp init until buffer is visible 2019-10-18 21:10:56 -04:00
8407af98fd tools/magit: disable magit-todos by default
This plugin is a source of slowness and occasional bugs. Instead of
enabling it by default, we keep it around for magit-todos-list, which
could replace +ivy/tasks.
2019-10-17 02:53:44 -04:00
957e1dd080 Fix (set-lookup-handlers! MODES nil) syntax 2019-10-15 22:24:57 -04:00
8129112e59 Check if evil-emacs-state-local-map is bound 2019-10-10 22:35:26 +13:00
3181933ed1 Minor refactoring and reformatting 2019-10-08 17:42:36 -04:00
bb71f591f8 tools/eval: fix void-variable term-raw-map errors 2019-10-08 17:42:36 -04:00
286024a48c modules/README: update links & alphabetize
And correct minor issues in lang/{elixir,ein}/README.org
2019-10-07 17:09:52 -04:00
1aae5c9242 tools/eval: fix extra newlines in term-char-mode REPLs #1836 2019-10-07 12:58:05 -04:00
33998bdaff tools/flycheck: inhibit popups in insert/replace modes 2019-10-05 12:47:31 -04:00
daee52d358 Fix duplicate backends in +lookup prompts
When running a +lookup/* command with the prefix arg, you are prompted
for which backend to use, which could contain duplicates if the current
buffer has no local backends.
2019-10-03 17:16:06 -04:00
19bfb1285d Fix #1852: magit not restoring wconf when quitting 2019-10-03 16:43:49 -04:00
0e6c015d60 tools/magit: init forge after building emacsql 2019-10-03 11:42:22 -04:00
9026efcf5a tools/lsp: enable flymake or flycheck, not both
And only enable flycheck if it is installed.
2019-09-30 12:50:26 -04:00
7c8badc8fe tools/flycheck: speed up buffer-wide flyspell checks 2019-09-28 12:47:21 -04:00
ac17c468d2 tools/pdf: revise comments 2019-09-27 12:05:48 -04:00