Commit graph

222 commits

Author SHA1 Message Date
23b34a3260 chore: spelling in git commit fix snippet 2023-05-16 19:33:24 +01:00
984aee9a44 fix(vim): split out document highlight and diagnostic float auto commands
This was an issue when editing files that don't have an lsp server. The
document highlight is only enabled for lsp's. This splits out the
highlighting and the diagnostic float into two separate auto commands.
The document highlight is now only enabled when the lsp is registered.

The diagnostic float is now enabled for all files. This is because the
the vim diagnostics are used for lots of other things like spell checking
and codelimate.
2023-05-16 19:27:45 +01:00
ed9b5c7db5 chore(vim): add stylelint for linting scss files 2023-05-16 19:26:27 +01:00
db07fa67ea chore(vim): enable ghost_text in completion 2023-05-16 19:25:51 +01:00
f7821ef42e feat(vim): add completion source name to completion menu
We have the kind of the completion item in the menu as an icon and the
name at the end. Now the end one has been replaced with the source name
so we can see what the completion item is and where it is from.
2023-05-16 19:22:45 +01:00
ed100f4824 refactor(vim): make the completion menu wider
Due to starting to learn clojure, I've had java classes popping up in
the completion menu. Because they are so long it needs to be wider so I
can see then.
2023-05-16 19:19:56 +01:00
762d3d6bb2 fix(vim): add cr to the end of open so it actually works 2023-04-25 21:14:52 +01:00
644a3bdc90 feat(vim): add ++p to the save file command
OMG this is AMAZING, it writes files and creates all the directories for
that file working the same as `mkdir -p`. I have honestly had a todo to
create a plugin that dose this on the before save hook for a long time.
Thank you reddit, and remember always read the manual `:help :w`!!
2023-04-25 21:06:05 +01:00
3070940cd1 feat(core): start on the clojure journey
Install all of the tools and config for clojure development. This adds
the first configz module that is not yet properly integrated and
automaticaly run with the `dotfiles` shell command.
2023-04-25 21:00:23 +01:00
894320aa4d chore(tmux): move themes to base16-tmux
This requires no extra config other than what I already have in the
base-16-shell. If this is installed then its automatically loaded.
2023-04-25 20:56:48 +01:00
765fccbf47 chore(vim): move ftplugin to be loaded after 2023-04-25 20:54:56 +01:00
9c5b1acaa6 chore(vim): update lua lsp to be lua_ls instead of sumneko_lua 2023-04-25 20:37:52 +01:00
bcab974cce fix(vim): cspell linter will now work with newer versions
There was a breaking change / bug fix to the cspell that caused the
error format to change.
2023-04-12 13:57:02 +01:00
584667ab3a feat(shell): add autoload and install or ruby versions via .ruby-version 2023-04-04 09:30:02 +01:00
7415d4e858 fix(zsh): move zsh init after path is setup
This is so the NVM_DIR is defined so the nvmrc plugin will work
correctly when loaded with zsh.
2023-03-16 21:01:35 +00:00
243a0aa497 feat(vim): make theme dynamic from BASE16_THEME use in the shell
Now when loading vim the them from the shell is getting used rather than
only every using tomorrow night. When I use tomorrow it will be
inherited in vim.
2023-03-16 21:00:50 +00:00
ce7b395e90 feat(vim): setup document highlighting and diagnostics on hover
Now when the editor is idle it will use the lsp to highlight other
references to the token under the cursor.

It will also show all the diagnostics in a popup like the lsp hover that
I manually use via <C-k>. This is helpful with long diagnostic messages
that run off the edge of the terminal when.
2023-03-16 20:48:12 +00:00
6c5b2573ae chore(vim): add co authored by snippet 2023-03-16 20:47:05 +00:00
456c7dfd73 feat(zsh): create nvmrc plugin
Custom plugin to check the .nvmrc file. When entering a directory, it
checks to see if you have the desired node version installed for the
current project. If it is, it will use it automatically, if not, then it
will ask you if you want to install it. After, it will install all the
JS developer tools for that version of NodeJS.

This is a different implementation than the default oh-my-zsh version.
The main difference is that it will not reset the node version when
leaving a directory. It will only preform an action if there is a
`.nvmrc` file in the current directory. It will not even use the
`nvm_find_nvmrc` command because any interaction with nvm make the
stranded `cd` command extremely sluggish.
2023-03-16 20:45:13 +00:00
cc49f5339e refactor(vim): simplify the tab behaviour in completion
The biggest change here is that I am no longer cycling though completion
items as the first thing. Tab will now mainly control the snippet jumps
in completion not items. Completion items can be used exclusively with
<C-n> and <C-p> and <CR> to complete the selected item. If the
completion menu is open and <CR> is pressed, this will select and
complete the first item.

I will soon be able to remove the <C-h> and <C-l> mappings when my
muscle memory adapts as this will now be controlled with tab.
2023-02-21 16:53:22 +00:00
a4e78a2c6a feat(vim): setup listchars so I can easily see whitespace and tabs 2023-02-21 16:50:54 +00:00
d1fe1f3c87 feat(pp): update delta diff 2023-02-09 20:22:40 +00:00
841e8f99bb chore(pp): update the mkcert version 2023-02-09 20:06:12 +00:00
077bd8ef3e feat(vim): update the base16-vim theme to tinted-theming 2023-02-09 20:05:36 +00:00
f56b6f95a2 fix(vim): swap out the BC in the cmp_nvim_lsp API 2023-02-09 19:44:18 +00:00
8849a1f277 chore(shell): change the layout of fzf commands
This is to keep things consistent with how I have ivy.nvim working in
vim. All fuzzy finding is now done at the bottom of the terminal with
the preview on top. This prevents the eyes to jumping up and down and
keep the focus to the bottom of the terminal.
2023-02-09 19:34:04 +00:00
80f044f1a0 chore(shell): migrate the shell themes to tinted-theming 2023-02-09 19:32:42 +00:00
eb1660d9e1 refactor(pp): remove the ssh config
I am not jumping into other machines to work anymore so there is no need
to manage the public keys anymore.
2023-02-09 17:17:59 +00:00
2fedfbe6fc chore(vim): change default todo name to be my GitHub username 2023-01-20 08:27:35 +00:00
0598663b42 feat(vim): support nvim diagnostic popups for lsp
This has a better look and it makes all the hover popups look the same
from the linters to lsp.
2023-01-20 07:55:47 +00:00
64483f8cf6 feat(vim): add the rescript lsp 2023-01-20 07:55:11 +00:00
afb09f2436 feat(vim): better snippets
This moves all of the snippets into a yasnippet file format so I can
better manage and edit the snippets. I did not like having them all in
one file stored as strings.

This implements a custom file parser that will convert the snippet file
into a luasnip parsed snippet that uses the LSP snippet syntax.

It also ports over some of my most used snippets from the emacs config,
maybe one day I could share the snippet in vim and emacs.
2023-01-20 07:44:05 +00:00
45802a67ce chore(vim): move back to the base16-tomorrow-night theme 2022-12-22 20:43:06 +00:00
615413d6e2 style(vim): add lua style and luacheck and format lsp config again 2022-12-22 20:41:30 +00:00
2670607006 refactor(vim): update the lsp config
Remove old servers that don't get used any more. Move config into a
table for better visibility on what servers are installed and their
configs.
2022-12-22 20:38:56 +00:00
3e4a265578 style(vim): format lsp config 2022-12-22 20:12:50 +00:00
42da517d5d chore(pp): comment out gem packages for now
This is not working correctly when ruby is installed with RVM. It will
need some debugging that will need to be done another time.

For now the only one getting use is puppet-lint, if this is not found it
can be installed when need.
2022-12-22 19:58:10 +00:00
6b8cc6b420 feat(tmux): add popup window switcher
This is a script that will popup a window with a list of windows in a
fzf promp. When selected the window will be focused. If the window is in
another session the session will also be switched and the window focused
2022-12-22 19:56:02 +00:00
3d387e4552 feat(vim): add term script back in from the history
This is from the dotfiles a long time ago, its still in vimscript, don't
think I will ever convert it over to lua.

This also disables base16 shell when the terminal is running inside vim
like I am doing with emacs.
2022-12-03 16:50:31 +00:00
490cd76629 refactor(vim): remove exit after run command
I am finding my self wanting to view the output of command nowadays,
rather then wanting to run a quick command and see if its passed or not.
By removing the exit at the end of the command the terminal dose not
close now. If I want the terminal to close I can still append the
command with `&& exit` when using `Run`
2022-12-03 16:14:29 +00:00
d04bc93c9d feat(vim): add codeclimate plugin 2022-11-15 20:38:14 +00:00
e93f9864b5 feat(vim): override the cspell linter for better integration
This will now use a custom config file `$HOME/.cspell.json` that will
use a custom dictionary for my own words. This will have things like my
name so cspell stop telling me I spelt my name wrong.

Will also add the `--language-id` flag with the current filetype, so it
can match language specific words.
2022-11-15 20:08:40 +00:00
0506dd4842 feat(vim): split out and refactor format on save so it can be toggled
This is off by default and will need to be turned on when developing on
code that will need to be formatted on saving.
2022-11-15 20:05:39 +00:00
e7897fc7e0 fix(vim): add binding to jump between snippet placeholders
Currently it is set up to use tab to jump between placeholders and go to
the next completion item. This is causing conflicts when typing
variables in the snippet placeholders.

Now you can use <CTRL-h> to jump to the next placeholders. This is only
available when the completion is active so, dose not conflict with
switching windows.
2022-10-01 11:44:37 +01:00
67f15d126d chore(pp): go dark mode
Really need to find a way to switch between light and dark mode.
2022-10-01 11:42:10 +01:00
aab25b20e0 chore(vim): remove compile of command-t
I think this will soon be replaced with ivy.nvim
2022-09-08 21:10:52 +01:00
c810abd159 chore(shell): add some more path setup 2022-09-08 21:09:07 +01:00
6808cf40b2 fix(vim): remove treesitter for indenting and go back to native 2022-09-08 20:53:32 +01:00
04a4d88c3c feat(vim): add the rust_analyzer lsp 2022-09-08 20:52:59 +01:00
12c916817a fix(vim): remove conflict keymap for lsp
This keymap is conflicting with switching windows up. This is baked into
my workflow with tmux navigator and vim
2022-09-08 20:50:59 +01:00