Commit graph

281 commits

Author SHA1 Message Date
d7c7fa9914 feat(sapling): get everything setup 2024-01-15 19:26:48 +00:00
7834732c41 feat(shell): let base16-shell define the delta theme 2024-01-15 19:05:48 +00:00
bbb12f136a refactor(core): move git module over to configz 2024-01-15 19:02:33 +00:00
48a18162a0 chore(vim): remove async from the default test
We are now adding lints test that disable async tests that do not use
await in them. I am by far the biggest offender for this and this is one
of the main reasons. Now any test I write will be synchronous by default
until I need it to be async.
2024-01-08 17:38:38 +00:00
44d8c3c677 feat(core): add a script for quickly getting stuff installed 2024-01-05 19:43:55 +00:00
54bedf5588 feat(vim): add a couple of snippets for writing jest tests 2024-01-05 19:43:15 +00:00
a36b52c5c4 feat(bin): add a script to quickly create vms 2024-01-05 19:41:22 +00:00
0bc3b77bd8 fix(term): disable warning about missing glyphs in wezterm
In some of the github fonts there are some glyphs now supported, they
are mainly getting used as icons in the vim completion ui.

Now we are not getting any system messages for this it has become quite
annoying.
2023-12-27 11:19:05 +00:00
517e37769f feat(vim): allows inputing for Olmama model so we can use other models
Now you can run `Olmama <model>` to use Olmama with the selected model.
Now you don't have to use only Codellama; there are others we can use.
2023-12-27 11:18:30 +00:00
8de4999881 refactor(vim): update ollama plugin to use older APIs
The ollama plugin was using some APIs that are not yet available in nvim
stable. Now we are using the older APIs we can use this on other
versions of nvim.

The `vim.api.nvim_buf_set_text` does not take some parameters as `-1` to
add text to the end of the line. Now we are getting the text on the last
line adding the new text to it, then replacing the last line.
2023-12-26 10:38:59 +00:00
76842a9e3f feat(vim): added neoformat plugin to configuration
I have added the neoformat plugin to the list of plugins in my Neovim
configuration file. This plugin provides a powerful formatting tool that
can be used to format code and files in various programming languages.
It also supports multiple formatting options, making it easy to choose
the right settings for your specific needs.

I have been using this plugin for a while now, I must have missed it
when migrating to configz
2023-12-12 09:26:09 +00:00
a7774f9576 feat(shell): setup rmv for a user local install
When running rmv on other linux installes other than Ubuntu its better
to install rmv for the user. This then gets installed in `~/.rvm`.

This now sets up the path so we can use rmv no matter what distro we are
on.
2023-12-12 07:44:05 +00:00
3e07954682 feat(vim): introduce key mappings for folding
This enhancement includes key mappings designed to improve code folding
in Vim. One of these mappings involves a double leader, which
efficiently toggles the current fold. Additionally, another mapping
utilizes the square bracket convention for seamless navigation between
folds, employing the mnemonic "fold."

Consideration was given to the potential conflict between the `f` key
and "function." After thoughtful deliberation, the decision was made to
use LSP for navigating around functions.

The implementation is currently integrated with prr to narrow the focus
of differentials to a single hunk. This refinement significantly
enhances the manageability of reviewing large pull requests.
2023-12-11 20:29:57 +00:00
321ec9b37d chore(term): add the wezterm config
I have been using this for quite a while now, this only adds the config
to the repo I have not yet got round to creating a configz module.
2023-11-25 20:50:19 +00:00
7e7429a70d refactor(core): convert the bid module to configz 2023-11-25 12:07:11 +00:00
4742f38122 refactor(core): move the zsh module over to configz 2023-11-25 11:31:26 +00:00
fe53b83ca9 chore(shell): enable vars to base16 shell
This is to get base16-shell to create config files for common
extensions. The one I would like to use the most is delta.
2023-11-25 10:50:43 +00:00
da223e930d style(core): run stylua 2023-11-24 08:01:34 +00:00
0fa7e58c98 feat(vim): have a play with marksman the markdown lsp 2023-11-24 07:54:33 +00:00
47688aa2b0 chore(vim): add ruby linters 2023-11-21 07:40:51 +00:00
ca4f0019a8 feat(vim): add the oil file management plugin
This is the plugin I have been using for a while now. I think its much
nicer to use than a tree style. Treating the filesystem as a buffer is
something I used in emacs and have come quite used to.
2023-11-20 08:03:03 +00:00
bfe83d49f4 fix(vim): only register linters when there is an executable
This is mainly for stylelint, I don't always have this installed and it
throws an error when you open a sass file and it tries to lint the
buffer. Now it will not know about any linters unless they are in the
PATH.
2023-11-20 07:57:34 +00:00
7f95ee24f8 refactor(vim): move to eslint_d from eslint
Eslint has become slow for some projects for reasons unknown. In an
attempt to speed up my linting process, I'm experimenting with eslint_d,
which keeps a process running. For the time being, I'd like to keep
linting and formatting separate from the Language Server Protocol (LSP)
to avoid the need to install every LSP. This way, I can have `shfmt`
without the bash LSP, for example.

For JavaScript, I may consider moving this into an LSP since I use it
for work, which would justify combining responsibilities. However, for
now, I'll be giving eslint_d a try.
2023-11-08 07:56:41 +00:00
4cffec6e7f chore(vim): remove indent-line, orgmode, and conjure
Indent Line is no longer in use; it's quite an old plugin, and there are
likely better ways to implement this functionality. For now, I won't be
using any indent markers, and we'll see how that goes. If I encounter
issues, I will explore alternative plugins.

Orgmode was an attempt to bring over the knowledge base from Emacs. Vim
doesn't have the same workflow as Emacs, and everything is less tightly
integrated into a single application. I have now transitioned to using
Markdown and Obsidian, focusing on the more widely-used Markdown
integration.

Conjure is too heavy for my needs. All I require is a simple plugin to
execute Clojure in a REPL. This plugin conflicts with many other plugins
and filetypes, where the LSP (Language Server Protocol) should handle
most of the heavy lifting. I've created my own plugin for my very basic
use case.

See: https://github.com/AdeAttwood/nrepl.nvim
2023-11-08 07:43:50 +00:00
82d2b12659 feat(vim): add the first impl of the ollama pluign
The Ollama plugin provides a simple way to interact with an Ollama
language model from within Neovim. It uses as many of the built in
features as possible like buffers, tabs and markdown. This will make
this as small as possible so you don't have to install plugins with
loads of features you don't use.
2023-11-06 08:34:24 +00:00
8a813aad8f chore(shell): add github shortcut so it shows shorter in the prompt
In the shell prompt when you were in a directory it would commonly be

`~s/github.com/AdeAttwood/Dotfiles|branch ⇒`

This mapping will shorten this down to try and make the prompt a bit
less intrusive when in a subdirectory of a project.

`~gh/AdeAttwood/Dotfiles|branch ⇒`
2023-11-06 08:30:42 +00:00
540b5b0c72 feat(vim): finally commit the copilot config
I have been using this for quite a while now. This add the copilot
plugin and the intergration with nvim-cmp
2023-11-05 18:09:41 +00:00
36c9832b9d feat(vim): add cmp-cmdline plugin
The config was added in ba4aca9636 but I
forgot to commit the plugin installation
2023-11-04 17:05:44 +00:00
b6170773c6 feat(core): add configz install on the dotfiles cli 2023-11-04 16:59:11 +00:00
447563c596 feat(pp): move the tmux config over to configz 2023-11-04 16:52:32 +00:00
8d56ef0940 feat(shell): let the delta theme be defined by base16-shell
When using light and dark theme I had to keep changing the git config so
git diff was readable. I have found that base16 shell has built in
support for delta so we can remove this config and let base16 shell deal
with it.

See: 9706041539/hooks/base16-delta.sh
2023-11-04 15:23:57 +00:00
8a021a6e0a feat(pp): migrate the nvim config over to configz 2023-11-04 14:39:58 +00:00
a90542e59d feat(shell): add the small procfile process manager in tmux
A Procfile runner for tmux. Each procfile will have its own tmux session
and each process will have its own window. This way you can use tmux to
attach view logs and also restart individual processes.
2023-11-04 09:05:08 +00:00
1f8b491825 feat(vim): add go to spec plugin
This will find the spec file that is associated to the current source
file.
2023-11-04 09:02:14 +00:00
77575fc2a7 chore(shell): add git find merge commit
This will output the git sha of the merge commit that a given commit is
part of. This can be used to get back to the pull request a commit was
part of. Or it can be used to help revert a hole changeset rather than
only one commit.
2023-11-04 09:00:05 +00:00
331e2ceaf9 feat(shell): add codeclimate wrapper
There are two wrapper scripts for running codeclimate locally in docker.
This script is adapted from their website. There is also a script that
will output the results in vimgrep format, so they can be easily loaded
into the quickfix list.
2023-11-04 08:54:02 +00:00
c6a4f619bf feat(vim): add some snippets for markdown and reviewing 2023-11-04 08:47:23 +00:00
11dc038c50 refactor(vim): update when the linters run
Move the linters to run on BufReadPost instead of BufEnter. This was
running the linters whenever a buffer opened, when jumping around
quickly with <CTRL-i> and <CTRL-o> this would cause the linters to run a
lot when there were not needed. Now were are only running them once when
the buffer is read from disk.

Adds a custom function that will add cspell to all of the filetypes.
This will then only run `try_lint` once to improve the performance. Now
neoformat has gone fully async. When calling `try_lint` one after the
other, the first processes were getting canceled.
2023-11-04 07:53:36 +00:00
ba4aca9636 feat(vim): add path completion to cmdline
This is actually quite nice. I use it all the time to be realy lazy and
type commands without capitalization.
2023-11-04 07:49:57 +00:00
6ba33108e2 refactor(vim): don't highlight search results
I have been using this quite a lot and have not missed the search
highlights. When this was on would alway search then use `:noh` to
remove all the highlighting.
2023-11-04 07:28:30 +00:00
2cf91cdb16 chore(shell): add a checkpoint commit alias
When working on the start of a project its nice to know what you are
changing. Or when you are working on a refactor having points to get
back to is nice. When we are done we can go and clean up the history so
it makes sense, for review, or just give our points more descriptive
messages and you don't need to brake your flow when coding.
2023-11-04 07:25:46 +00:00
61a294a255 feat(vim): improve markdown editing with long wrapping lines
In markdown I have long lines wrapping as we are often editing docs that
don't stick to 80 columns. This makes it hard to navigate with j and k
imposable to use becase is skips over the wrapped lines.

This now using gj and gk to navigate wrapped lines so j and k will act
naturaly and move down one "line" even on the wrapping.
2023-11-04 07:20:10 +00:00
a0c35f90b5 refactor(vim): move jest commands to use Run rather than run in process
The jest out put is quite hard to process. This points that were add
into the quickfix list where often incorrect. This is a bit pointless
and I would find myself running it again in the terminal to see all of
the output.

This will have todo until I can find time to create proper test runner,
I really don't like the look of any of the plugins available.
2023-11-04 07:09:50 +00:00
fde2a7ae78 style(configz): run stylua on the modules and libraries 2023-10-15 15:51:11 +01:00
ed39483c40 fix(vim): force solargraph to use bundle exec
Solargraph is best used installed in your Gemfile, this will allow you
to use manage the versions by each project. This will ensure that we are
using the version in your Gemfile, not the one installed globally.
2023-10-15 15:46:01 +01:00
2d7ab84b3a feat(vim): add prr plugin for a better code review experience
Sets code folding of diffs and hunks so we can review hunks on there
own. This is good for larger pull requests, you can focus on the hunk
and not get overwhelmed by the rest of the code.

Adds a go to definition mapping for prr lines. This will allow you to go
straight to the line of code when reviewing a pull request. Seeing the
code in full context is really helpful when reviewing. You are then
there in your editor with all the linters and the LSP.
2023-10-15 15:40:41 +01:00
7e72f1f566 chore(vim): add some erb snippets 2023-08-21 10:30:24 +01:00
835d695ed0 feat(shell): add prr zsh plugin
This will use my directory structure to get the project namespace and
name for prr. This way we dont need to keep providing the extra info.
2023-08-21 10:30:24 +01:00
debce210d5 chore(vim): add binding to open current file in browser
There is some weirdness with `:GBrowse` where it will open the file and
line but only if the line / block is visually selected. This was too
many keystrokes so I added a binding to do it.
2023-08-21 10:30:24 +01:00
8fac40e82f chore(shell): add adr-tools to path if installed 2023-08-21 10:30:24 +01:00