Commit graph

363 commits

Author SHA1 Message Date
8fcf291c56 chore(vim): move back to eslint
All the issues have not been resolved with linting. Nvim lint is more
stable with its async linting.
2024-05-19 19:20:46 +01:00
dab35e8523 fix(vim): ensure run command open a new split
For some reason the Run command was no longer opening a new window. It
was just failing.
2024-05-19 19:18:46 +01:00
56b2b01f6f refactor(vim): move the cspell config to extend the builtin one
There have been some changes in the cspell config upstream to fix issues
in the cspell cli. These are mainly around the parsing of the output.

The only things my changes are adding in the file type and applying my
config file. They are only in the command not the parser.

Now we are using the upstream config and adding the extra params I need
rather than having to maintain a completely override.
2024-05-19 16:55:07 +01:00
521382ecb7 fix(terminal): disable wayland in wezterm
This is causing issues with losing the cursor, you then need to move the
cursor over another window to get it back.

On Gnome it is also not picked up but the window manager. You cannot
then using tools like wmctrl to reposition and resize it.
2024-05-03 07:52:49 +01:00
bda740caf7 fix(vim): disable hover in liquid files
This is causing the same issues as the other file types, when there is
an lsp attached but it dose not support hover for this filetype
2024-05-03 07:51:28 +01:00
1a0828b763 feat(vim): setup c# and f# languages 2024-05-03 07:32:09 +01:00
ded2d4e66b fix(core): issues with the install script
For the zypper install script, there was a spelling mistake in
`libopenssl-devel`, this is required for compiling configz.

On WSL git is not installed by default, this now installs it so we can
download the stuff.

In the conditions to see if packages are installed, there are no quotes
around the commands. This is then giving false positives and not
installing configz or the rust toolchain. This has now been sorted so
its all good.
2024-05-03 07:12:19 +01:00
2450448b7e feat(sapling): add script to push up all bookmarks in a stack 2024-04-19 20:14:52 +01:00
3f3b98bf1b refactor(sapling): run addremove before committing
When running commit, any new file that has been created dose not show up
ready to be committed. I am running commit in interactive mode so it
dose not get committed automatically. I can then choose if I want to
actually commit the file
2024-04-19 20:04:37 +01:00
2b6097dc9e fix(shell): there seems to be a random dash in the fp command 2024-04-10 19:26:00 +01:00
29618280a1 feat(sapling): move to using the default log template
Previously we have move the templates in to the sapling config. Now we
can use that everywhere by default so everything looks the same.
2024-04-10 19:21:49 +01:00
38be0963c4 feat(vim): move to commit mono font
I think I will be installing this with the dotfiles soon.
2024-04-10 19:20:42 +01:00
b1746b0178 feat(vim): auto install treesitter grammars
Previously we were defining what ones we want to install. Now we are say
we want to install the grammar when we go to a file. If we don't have
that grammar installed then we will install it then
2024-04-10 19:17:42 +01:00
a1e089babb feat(vim): bump the priority of snippets in completion
I want the snippets to be the first thing in the completion when they
are available.
2024-04-10 19:12:59 +01:00
ad88b65474 refactor(vim): update the icons that show in completion 2024-04-10 19:09:24 +01:00
2f6e30fb53 refactor: start pulling out the prr config into a plugin
All the prr code review stuff will be in its own plugin soon. There are
some sweet features coming with a treesitter parser for syntax
highlighting.
2024-04-10 19:06:51 +01:00
6dc809f985 refactor(vim): remove puppet and auto-pairs plugins
Now that I am fully on the configz train, I no longer need to use all
the puppet stuff.

Also, now that I am using copilot more auto-pairs seem to be getting in
the way. This removes that plugin so we can put them in manually. TBH
after using auto-pairs for quite some time, I can't get any of them to
work correctly for me.
2024-03-10 09:14:13 +00:00
9abfaf54ce fix(core): vim links for the vim config links 2024-03-10 09:10:46 +00:00
1dfe088757 feat(shell): don't load base16 themes when useing WarpTerminal
I have started playing with this terminal and it has all its own themes
and base16 was getting in the way.
2024-03-02 18:25:12 +00:00
53a9a07bf6 fix(vim): add busted globals to the lua diagnostics lsp
When writing tests with busted they use some other globals that you need
to tell you lsp about. I already have this for when I'm working on the
nvim config and configz.
2024-03-02 18:22:29 +00:00
ff3b54d281 feat(vim): allow emmet to be used in liquid files
When using the liquid templating language I would like to use emmet
syntax to expand html.
2024-03-02 18:20:21 +00:00
cd382dbdf8 fix(vim): add --no-require-git to the ferret rg command
Now that I have mostly moved over to sapling, rg dose not ignore git
files by default. When searching in vim it would search in the
node_modules by default. As you can imagine this took for ever.

Now we are passing the `--no-require-git` flag so it will ignore any
file / dirs that are in any .gitignore by default.
2024-03-02 18:16:22 +00:00
e17f3f0e97 feat(terminal): configure wezterm titlebar so it looks nice
When using wezterm on wayland the gnome titlebar dose not get used. The
coloring of this is dark by default and dose not look good with a light
background.

Going forward I would like to configure this to adapt to the system
light or dark settings.
2024-03-02 18:13:33 +00:00
a9a3164655 chore(core): update babashka 2024-03-02 18:11:54 +00:00
73ecb1604d feat(sapling): move log template into the config and add switch alias
When running other log command the template I had setup in `sl` was not
getting used. This has now been put into the config so its the default
template for any log command.

This also adds a quick alias to switch to another head. When reviewing
pull requests locally this helps quickly switch between heads.
2024-03-02 18:08:43 +00:00
5c87f2271b feat(sapling): enable all the commit snippets in hgcommit filetypes 2024-02-12 16:19:15 +00:00
e11deb18fd feat(bin): add script to run rspec when files have changed 2024-02-12 16:17:42 +00:00
7b1243035b feat(sapling): improve log
Change the included commits to be the full tree, no matter where you are
on the stack. There is the graphnode to indicate where you are with a
`@`.

Change the color of public commits so you can easily see what are your
commits on the stack. This makes moving around and rebasing easter when
you can see when your last public commit it.

Remove the hard 40 commit limit. Now we are getting the last 40 public
commits plus the commits on your stack
2024-02-12 16:10:23 +00:00
07fc786709 chore(sapling): add alias for diff and status 2024-01-29 20:43:02 +00:00
b91490e273 fix(shell): update prr to work with sapling so we can code review
When we are in a sapling repo `gh pr checkout` will not work. If this is
the case we wil need to export the PRR_NUMBER so we can skip getting the
PR number. Working with prr and sapling comes with following limitation.

You can only use the branch name. When git you can use the pr number,
url or the branch. Unfortunately so we can checkout we will need to use
the branch name.
2024-01-29 20:26:05 +00:00
659328a7b8 fix(sapling): setup nvim as the diff tool
There built in diff tool points to vimdiff. This dose not have all of my
key bindings and all the nice features I have setup in nvim.
2024-01-29 20:20:41 +00:00
617ba4f452 chore(shell): remove the android env stuff its never used 2024-01-15 19:27:36 +00:00
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