Commit Graph

682 Commits

Author SHA1 Message Date
92c16d4dcb feat(language/go): use tree-sitter-mode and tree-sitter-hl-mode 2022-03-10 21:11:26 +00:00
6f422773a5 feat(language/markdown): enable polymode in markdown buffers 2022-02-23 12:11:52 +00:00
75543de052 feat(language/ssh-config): add custom file path to mode list 2022-02-23 12:11:18 +00:00
ae6877668f chore(projects): remove left-over "C-c b" keybinding from projectile
"C-c b" is now handled by consult via a custom
siren-consult-projectile-buffer function.
2022-02-23 12:11:17 +00:00
96d5bab074 fix(navigation): disable direx as it is broken on recent Emacs 29.x builds 2022-02-23 12:11:17 +00:00
2554669fea feat(language/go): improve and fix usage of gotest package
- Fix issue where gotest could not be used from non-test files in Emacs
  28.x or later.
- Bind "C-c , t" to ff-find-other-file to mimic behavior in Ruby via
  rspec-mode.
- Configure gotest to always run tests with "-count=1" to avoid cached
  results, so it's easier to notice and handle flickering tests.
2022-02-23 12:11:17 +00:00
1db4018497 feat(nativation/consult): custom groups for consult-buffer
Using consult-buffer to switch between buffers is now project aware,
meaning when current buffer is in a project, the list of buffers is
split into two groups; project buffers, and other non-project buffers.

The project buffers group is above the other buffers group, meaning it's
very easy to switch to other buffers within the same project, while
still being able to switch to non-project buffers too.

When current buffer is not part of a project, all buffers are shown
together in a single completion group.
2022-02-17 22:08:03 +00:00
1a41eea77e fix(nativation/helm): resolve helm loading issue after update 2022-02-09 00:35:39 +00:00
4a552aa96d fix(editor/vertico): resolve race-condition issue with projectile-switch-project
Occasionally right after starting Emacs, it was possible to issue a
projectile-switch-project command which ran before my hacky
vertico-directory advice had been added. This should ensure the advice
gets added earlier.
2022-02-07 22:42:17 +00:00
d6d7b3a450 fix(docs/helpful): add workarounds for recent Emacs 29.x issues
There's been a couple of recent changes in Emacs' master branch which
has affected the helpful package. These changes work around both issues,
and seems to let helpful keep working as before.
2022-02-07 22:40:26 +00:00
27fae46664 fix(ui): prevent tab-bar being visible in lsp-ui-doc child frame 2022-02-07 10:45:42 +00:00
f79cb11fa2 chore(language/go): update lsp-mode setup for gopls 2022-02-07 10:44:17 +00:00
ddc99acaa0 feat(workspaces/tab-bar): display tab-bar and make it pretty
I'm giving the visual tab-bar a try, by making it less ugly than it is
by default. Hopefully I won't mind it taking up one full row at the top
of the frame.
2022-01-26 22:54:37 +00:00
5cd56e866b chore(navigation/centaur-tabs): minor customization tweaks 2022-01-26 22:49:38 +00:00
fd1072ae8c chore(editor/marginalia): minor customization tweaks 2022-01-26 22:48:39 +00:00
0312a360b4 feat(projects): switch from helm-projectile to regular projectile commands
With vertico, orderless and marginalia, I feel the regular projectile
find-file and switch-project commands offer just as good if not better
completion than helm-projectile commands do. Hence the switch.
2022-01-25 12:26:09 +00:00
c80b4e24fa fix(editor/vertico): cleanup if projectile command is canceled 2022-01-18 03:04:53 +00:00
309bc2a611 feat(editor/vertico): improve extension setup
Override default straight recipe for vertico to expose extensions as
packages.

Also create hacky vertico-directory-mode to easily toggle
vertico-directory features on and off.

vertico-directory-mode is then used by a projectile advice to
temporarily disable vertico-directory features while completing results
from projectile. This is required to avoid breaking the
projectile-switch-project and related commands, as the project list is
not a set of files, but vertico-directory-enter thinks it is.
2022-01-18 00:51:34 +00:00
bd36da4bfe fix(navigation/helm): set helm-find-files to C-x f
This allows C-x C-f to be bound to find-files, which now uses vertico to
great effect.
2022-01-17 22:35:25 +00:00
b5daa4f2e5 fix(navigation/helm): add require helm-mode to fix errors 2022-01-17 22:33:28 +00:00
fdc443ea74 feat(languages): enable lsp-mode in Dockerfiles and web-mode buffers 2022-01-16 12:17:36 +00:00
5a464d6562 chore(languages): simplify terraform configuration
lsp-mode now supports terraform-lsp and terraform-ls, so there's no need
to define a custom language server for terraform-ls.
2022-01-16 11:56:50 +00:00
04d83a23cd feat(editor/veritco): add vertico-directory extension 2022-01-16 03:35:49 +00:00
3a8b04b59c fix(lsp-mode): add "tmp" to ignored directory names
Rails projects uses a "tmp" directory for asset compilation, which can
lead to thousands of olders, which lsp-mode will try to monitor, and
warns that you're about to monitor +1000 directories.

Hence, ignore "tmp" directories, as there shouldn't be any code in there
that needs a language server.
2022-01-16 03:33:42 +00:00
56a577ae91 feat(completion): switch from selectrum to vertico
I finally resolved the lsp-mode bug I had whenever I tried vertico in
the past. It was due to me setting resize-mini-windows instead of
vertico-resize.
2022-01-09 15:41:17 +00:00
fd707a6e1b feat(version-control): add github-review package
This serves as a alternative to the code-review package. I'm adding it
mostly for testing purposes so I can compare the two and see the
pros/cons with each.
2021-12-27 19:30:36 +00:00
90441a2590 feat(version-control): add gh-notify package
Also configure forge's dispatch menu to have a keybind for triggering
gh-notify.
2021-12-27 19:27:50 +00:00
36dd864a37 chore(version-control): move forge SQLite database file to cache directory 2021-11-30 22:32:28 +00:00
70f776d4f3 feat(version-control): add code-review package
This allows reviewing GitHub pull requests within Emacs.
2021-11-30 22:31:47 +00:00
819f068879 fix(dired): prevent dired from prompting about removing dired buffers
When deleting a file in Dired, it has recently started prompting about
removing the dired buffer along with file buffer. This is rather
annoying, as I almost never want to close the dired instance I have open
when simply deleting a file from a folder.

So I've overridden the relevant function, and added an option
specifically to enable/disable the prompt about removing the dired
buffer.
2021-11-26 21:28:25 +00:00
0ac1c86102 feat(lang/go): add custom lsp-client for golangci-lint-langserver 2021-11-26 21:20:01 +00:00
ec280fbade chore(projects/projectile): remove no longer needed root file config 2021-11-10 10:33:23 +00:00
ab001eeb0e fix(version-control/magit): when disabled delta still caused issues
Turns out running (magit-delta-mode -1) to "disable" or ensure it's
disabled as a magit-mode-hook was a bad idea, as it set
magit-diff-refine-hunk to nil.

So instead, we only call magit-delta-mode when siren-magit-delta-enabled
is not nil, and the delta executable is available.
2021-11-10 10:28:00 +00:00
1f7d739193 feat(navigation/imenu): improve C-t imenu keybinding
Use consult-lsp-file-symbols if available and lsp-mode is enabled in
current buffer. Otherwise fall back to consult-imenu. Also fall back on
consult-lsp-file-symbols if it produces an error, which seems to happen
for some language servers right now.
2021-10-28 11:04:24 +01:00
ea97b5528a chore(version-control/diff-hl): minor tweaks and cleanup 2021-10-24 04:05:32 +01:00
09c27ab0a7 fix(projects): unbind M-l from treemacs as it interfered with a global keybinding 2021-10-24 04:03:52 +01:00
3a8dc7944f chore(navigation/helm): set sources which default to using follow 2021-10-24 04:03:12 +01:00
31078e618f chore(navigation/helm): attempt to get posframe working perfectly again
Only outstanding issue is that some helm-completions when follow mode is
enabled do not show the followed file content in the posframe.
2021-10-24 03:59:10 +01:00
67a0c99e52 chore(lsp): tweak lsp-related keybindings again 2021-10-24 03:58:33 +01:00
6daac868e2 fix(lang/dockerfile): add custom hadolint flycheck checker which actually works 2021-10-24 03:56:51 +01:00
1dbb5631f6 feat(version-control/magit): add magit-delta package
Disabled by default, as the syntax highlighting can make code harder to
read in the diff. Hence disabled by default, and easy to toggle on if I
want to try it.
2021-10-24 03:55:52 +01:00
205af0097a feat(workspaces/tab-bar): hide tab-bar
I prefer my custom echo area message which appears whenever any tab-bar
operations are performed, as they don't take up permanent space on the
screen.
2021-10-24 03:52:15 +01:00
11099af502 feat(navigation/helm): add helm-xref package 2021-10-24 03:51:56 +01:00
01bd757c15 fix(lang): gitconfig-mode and gitignore-mode have been replaced with git-modes 2021-10-24 03:50:18 +01:00
6e65e27ca2 feat(navigation/helm): make treemacs/neotree auto-hiding customizable 2021-10-22 11:42:27 +01:00
cccff7190a feat(projects/treemacs): customize highlight line background color 2021-10-22 11:28:53 +01:00
c52853e832 feat(lsp): tweak lsp diagnostics related keybindings
- Bind consult-lsp-diagnostics to C-c C-\ as it is visually less
  intrusive, and scoped to only the current workspace.
- Bind helm-lsp-diagnostics to C-c \ which includes diagnostics from all
  active workspaces.
2021-10-11 10:33:54 +01:00
35d6e12612 fix(navigation): resolve dired/dired+ load order issue
Because dired+ must be loaded before the dired creates a buffer, we have
to actually manually require dired+ when loading dired. Otherwise the
first dired buffer within a fresh Emacs instance will have dired+
features, but any further buffers will.

Also we can now remove a workaround for dired+ with Emacs 28 that
prevented files/folders from being deleted with dired.
2021-10-07 22:56:07 +01:00
6e34c36e69 feat(projects): use helm-projectile for project switching again 2021-10-06 23:47:29 +01:00
bde765001b feat(navigation): make helm take up full frame
Further tweaks to helm appearance, now simply take up the full frame
with it's completion UI. When follow mode is enabled, have preview
appear in bottom half of the window.
2021-10-06 23:44:52 +01:00