Commit graph

527 commits

Author SHA1 Message Date
Oliver Davies c4e0a44495
chore(nvim): remove vimwiki 2021-12-23 23:11:34 +00:00
Oliver Davies 2eb22cf317 chore(nvim): install plugins automatically
Use `PackerSync` instead of `PackerCompile` as this will both compile
and install the plugins.
2021-12-23 14:54:58 +00:00
Oliver Davies 66b1a4373a chore(nvim): ignore packer_compiled.lua 2021-12-23 14:53:29 +00:00
Oliver Davies c8ed72a611 feat(nvim): set some more options 2021-12-23 00:56:45 +00:00
Oliver Davies 88aae1b8ec feat(nvim): display Packer in a popup 2021-12-23 00:56:23 +00:00
Oliver Davies 304cffa0fa feat(zsh): ignore duplicates in history 2021-12-20 16:32:11 +00:00
Oliver Davies 79a2687fcf nvim: fold everything by default
To make it easier to remind myself that folding is a thing, for now I'm
going to enable it by default again for all files.
2021-12-17 23:31:25 +00:00
Oliver Davies 9c406d5358 nvim: set the fold level 2021-12-17 23:23:51 +00:00
Oliver Davies 2d9f2a995e chore(nvim): switch to numToStr/Comment.nvim 2021-12-04 01:33:18 +00:00
Oliver Davies 141e4f7310
fix(git): remove user information
Hopefully this stops my personal email being used for work commits.
2021-12-03 15:04:20 +00:00
Oliver Davies 5d18678ab5 fix: automatically compiling packer on save 2021-12-03 08:14:06 +00:00
Oliver Davies 7eb5ce9a8e chore: move the prompt position
Move the prompt position to the top of the Telescope window.
2021-11-18 18:34:53 +00:00
Oliver Davies 04392ea377 feat: experimenting with custom Telescope commands 2021-11-17 22:58:15 +00:00
Oliver Davies af6d7d8b4e refactor(nvim): finish restructuring lua files
This completes what I started in commit
0786ed3b3d, refactoring the lua code by
restructuring the directories and removing the `init` functions at the
bottom of each file.
2021-11-17 18:47:06 +00:00
Oliver Davies 4eb19130a9 feat(nvim): automatically re-compile packer
Automatically re-source the `packer.lua` file if it changes, as well as
automatically running `PackerCompile` to updated the compiled version.
2021-11-17 18:31:09 +00:00
Oliver Davies 3faee1f7fc feat(nvim): add a mapping to edit dotfiles
Add a mapping to open Telescope within my `~/dotfiles` directory so that
I can quickly make any changes to those files without leaving my current
directory or nvim session.
2021-11-17 18:27:38 +00:00
Oliver Davies 850015934e chore(nvim): update so mapping to use init.lua 2021-11-17 18:27:08 +00:00
Oliver Davies fa03fbd4cd feat(nvim): add kyazdani42/nvim-web-devicons
This will add icons to the results list when searching for things with
Telescope.
2021-11-17 12:54:55 +00:00
Oliver Davies 0dfeb542fe feat(nvim): telescope configuration 2021-11-17 12:54:18 +00:00
Oliver Davies 0786ed3b3d chore: move plugin config files into after
Move the nvim configuration files into `.config/nvim/after/plugin` so
that they are autoloaded.

This also means that the local `init` functions can be removed as they
are no longer needed, and this also simplifies the Packer configuration.
2021-11-17 09:42:17 +00:00
Oliver Davies ac3c15f4a5 fix: add font vertical offset
Add an offset to the font using `offset.y` to add some vertical spacing
between each line to make things easier to read and more like I had it
in PhpStorm.

Also use `glyph.offset` to ensure that the spacing is balanced between
the lines rather than all being above each line, as this looks a bit odd
in Vim and with the tmux status line.
2021-11-16 11:39:30 +00:00
Oliver Davies f80ded946e feat: add keybindings for fzf in zsh
Add keybindings for fzf to run keybindings like CTRL-T, CTRL-R, and
ALT-C in zsh.

From https://github.com/junegunn/fzf:

> warning Key bindings (CTRL-T / CTRL-R / ALT-C) and fuzzy
auto-completion may not be enabled by default.

> Refer to the package documentation for more information. (e.g.
apt-cache show fzf)

Running `apt-cache show fzf` said:

> Refer /usr/share/doc/fzf/README.Debian for quick instructions on how
to add keybindings for Bash, Zsh, Fish to call fzf.

This in turn said to add this line to `~/.zshrc`, or in my case, a new
`fzf.zsh` file:

    source /usr/share/doc/fzf/examples/key-bindings.zsh
2021-11-16 11:35:41 +00:00
Oliver Davies daa92fa662 feat(nvim): add vimwiki 2021-11-11 18:08:42 +00:00
Oliver Davies 7247d57e65 fix(nvim): remove vue filetype for typescript 2021-11-11 18:08:42 +00:00
Oliver Davies 8912b1885a refactor(git): sort aliases 2021-11-10 10:58:11 +00:00
Oliver Davies 1a16f326ea style(git): remove blank line 2021-11-10 10:58:06 +00:00
Oliver Davies 3bac0ca044 chore(git): remove Inviqa references 2021-11-10 10:58:03 +00:00
Oliver Davies 638c058642 chore(nvim): add transparency to the popup menu 2021-11-09 18:01:39 +00:00
Oliver Davies 7b756e570a refactor(nvim): restructure lua configuration 2021-11-07 20:38:20 +00:00
Oliver Davies 603316ab2e zsh: update WORDCHARS
Update the word separator characters.
2021-11-05 10:58:38 +00:00
Oliver Davies 20bc33046c nvim: group vim.cmd commands 2021-11-04 00:18:03 +00:00
Oliver Davies 78513b1154 nvim: re-add old mapping to remove hlsearch 2021-11-03 23:42:21 +00:00
Oliver Davies 514e4ad061 nvim: show virtual text for LSP 2021-11-03 00:05:02 +00:00
Oliver Davies fc56046ec3 nvim: remove mattn/emmet-vim 2021-11-03 00:05:02 +00:00
Oliver Davies 9d2ce607d3 nvim: stop packer cleaning itself 2021-11-03 00:05:02 +00:00
Oliver Davies 800df5de37 refactor(nvim): add a local map function alias 2021-11-03 00:05:02 +00:00
Oliver Davies 907f01cb52
nvim: don't fold text by default 2021-11-01 13:39:16 +00:00
Oliver Davies ad7a62bfeb refactor(nvim): use packer for plugins 2021-10-30 23:12:29 +01:00
Oliver Davies 626bcd4ce4 refactor(nvim): move more settings to lua 2021-10-30 22:00:53 +01:00
Oliver Davies 396fab57da chore(nvim): clean up lsp configuration 2021-10-30 15:14:30 +01:00
Oliver Davies 506b1d3286 feat(nvim): add formatting for tabnine
Add completion formatting for the cmp_tabnine source so that its
suggestions are easily identifiable.
2021-10-30 15:14:30 +01:00
Oliver Davies 3c0d75b7e6 refactor(nvim): move vim options into lua 2021-10-30 15:14:30 +01:00
Oliver Davies d68e3ea22b feat(nvim): add harpoon 2021-10-30 15:14:30 +01:00
Oliver Davies dd24187a5d feat(nvim): enable ghost text in lsp 2021-10-30 15:14:30 +01:00
Oliver Davies e0b1365b39 feat(nvim): add norcalli/nvim-colorizer 2021-10-30 15:14:30 +01:00
Oliver Davies 1473b4da61 nvim: set colour for indent lines 2021-10-30 15:14:30 +01:00
Oliver Davies 024e24606d chore(nvim): try some different key mappings 2021-10-20 13:21:41 +01:00
Oliver Davies ba17fe53e4 feat(tmux): enable mouse support 2021-10-20 12:58:11 +01:00
Oliver Davies 9654f7d095 feat(nvim): add cmp formatting 2021-10-19 23:41:48 +01:00
Oliver Davies 6c75b2ce66 feat(nvim): add luasnip 2021-10-19 23:41:48 +01:00