114 Commits

Author SHA1 Message Date
2694c76a67 Remove all references of Pack command
The previous commit removed all command related to minpac, including
`Pack` which was still being referenced in `vimrc`.
2022-11-08 13:23:22 +00:00
ee5110efd8 Remove minpac in preparation for using Ansible 2022-11-08 11:21:08 +00:00
330329ef2b Replace ad hoc conflict markers with plugin 2022-11-07 14:27:13 +00:00
32610db521 Make gx work in WSL 2022-11-06 11:21:32 +00:00
2ce3d322ca Add coc-powershell on Windows only 2022-06-15 22:15:23 +01:00
fd31549a32 Add coc-docker to list of global extensions 2022-02-26 17:25:09 +00:00
e1bc4428c5 Disable coc.nvim semantic highlights 2021-07-18 16:19:48 +01:00
06335a18da Change vim-signify changed sign from ! to ~ 2021-05-22 17:02:04 +01:00
9aa45a4df5 Use coc-jedi and coc-pyright instead of coc-pyls 2021-04-19 20:10:29 +01:00
46d27c17fd Move formatexpr config in-tree, out of plugin
Introduces the `format` Python module which provides `clang_format()`
and `yapf()` functions which efficiently (compared to vimscript) invoke
`clang-format` or `yapf` respectively then apply the minimal number of
changes using `difflib.SequenceMatcher`.

Additionally, in order to invoke these Python functions add |autoload|
functions `format#clang_format()` and `format#yapf()` which can be
directly used by the 'formatexpr' setting.

Finally, add |ftplugin| files which set 'formatexpr' when the |autoload|
functions are available.
2021-04-19 20:10:29 +01:00
837aa12f9f Replace osc52yank.vim with autoload script 2021-04-18 14:42:33 +01:00
c284486540 Make nvim :terminal more consistent with vim
Vim's :terminal feels much more ergonomic, adding various mappings to
make the experience more similar, mainly by adding a few `<C-w>`
mappings for the most common actions.

Additionally, disable vim-tmux-navigators default mappings and setup
both normal and terminal mode mappings for `<C-w>{h,j,k,l}` in addition
to the normal mode mappings for `<C-{h,j,j,l}>` to make the pane
switching experience more consistent across all buffer types.
2021-04-18 14:42:33 +01:00
9a1b1ed2fc Replace vim-airline with a custom statusline
Finally got round to making a custom statusline after being inspired by
https://pastebin.com/Fm1NEgBf
2021-04-18 14:42:33 +01:00
bee751201d Add list of global coc extensions 2021-04-18 14:42:33 +01:00
bf6deaf1ed Configure cmake-language-server and coc-cmake
Utilises the following Python package:

```console
$ pip3 install --user cmake-language-server
```
2021-04-18 14:42:33 +01:00
4a99f582f3 Replace YouCompleteMe with coc.nvim 2021-04-18 14:42:33 +01:00
82303f075e Move RST settings together 2021-02-06 11:05:23 +00:00
9c64158445 Replace vim-gitgutter with vim-signify
vim-gitgutter is buggy. vim-signify might be better, it does allow
configuration of which events trigger a sign column update and this
patch takes advantage of that. Firstly, the `CursorHold` and
`CursorHoldI` events are disabled and replaced with `InsertLeave` and
`TextChanged` events. This makes the sign column updates immediate, and
since vim-signify is asynchronous it's faster too.
2021-01-26 23:45:49 +00:00
0cd93f1823 Generalise tmux option check 2020-12-31 18:22:37 +00:00
db2079994a Disable some cmakelint checks in ale
Some of `cmakelint`s opinions around convention don't provide a benefit.
2020-12-14 15:14:24 +00:00
c17f7ea0d9 Refactor tmux and set-clipboard detection
Move logic to `autoload/tmux.vim` to detect the `vim` is being run
inside a `tmux` sessions and if the `set-clipboard` option is enabled.
This cleans up adding the optional `oscyank.vim` plugin when needed.
2020-12-10 18:07:24 +00:00
48913e09c3 Fix isdirectory() uses with relative paths
After upgrading VIM 8.2 (2019 Dec 12, compiled Oct 24 2020 16:26:37)
uses of `isdirectory()` with relative paths in `$MYVIMRC` stopped
working. These must now be absolute paths.
2020-12-10 17:38:58 +00:00
e4a11a2ffe Fix package load init order bugs
* Move calls to `minpac#init()` into commands which use minpac
* Check if optional package directories exist before using `packadd`
2020-11-28 17:16:11 +00:00
3449b3f815 Disable automatic hover in YouCompleteMe 2020-07-21 12:01:41 +01:00
67b9c6b45a Check tmux exists before loading osc52 2020-07-19 20:25:29 +01:00
01059ac01a Enable YouCompleteMe on Windows 2020-07-19 20:25:29 +01:00
158a6f5585 Don't let vim-matchup overwrite statusline 2020-05-14 12:53:21 +01:00
b40a9abb59 Only load YouCompleteMe when :TermDebug isn't 2020-04-02 12:14:13 +01:00
8fac5fb74f Add OSC 52 escape sequence yank
If the `tmux` `set-clipboard` option is set to `on` add the `osc52yank`
plugin and change `<leader>y` mapping to use it.
2020-04-02 12:12:57 +01:00
b3a2208b42 Don't gate Python plugins on has('python') 2020-01-28 10:48:28 +00:00
a93489efe9 Add console filetype for Markdown/RST code blocks 2020-01-28 10:48:22 +00:00
489e6db231 Use tip YouCompleteMe from ycm-core org
Update to latest, community maintained, YouCompleteMe version and use
the same version on all platforms.
2020-01-16 23:27:15 +00:00
2bef425dee Enable fzf plugins on Windows 2020-01-14 10:41:49 +00:00
aa3ae7df35 Don't use clangd with YouCompleteMe 2019-11-07 20:43:05 +00:00
23b9bf1f1b Limit rst code block highlighting 2019-11-05 16:19:31 +00:00
3bbbbe2a63 Enable reStructuredText style option 2019-10-14 21:49:38 +01:00
0d0e69a2ec Add ANTLR filetype syntax 2019-09-08 17:09:59 +01:00
92d88b623d Disable airline word-count
When editing `rst` filetypes for longer periods airline started
producing errors when attempting to count the number of words in the
document, so disable this feature.
2019-08-29 14:57:11 +01:00
5f7b05aab0 Fix not loading packages from ~/.config/work 2019-05-02 12:01:43 +01:00
e3886d08f8 Only install fzf as a plugin, not the cli tool 2018-12-13 16:18:58 +00:00
bdb9504aec Use selected YouCompleteMe repo 2018-12-03 11:44:41 +00:00
51621e8134 Remove vim-plug and use minpac
* Add `Pack`, `PackUpdate`, `PackStatus` and `PackClean` commands to
  manage plugins.
* Don't load `minpac` by default.
* Remove `vim-plug` completely.
2018-11-30 19:41:21 +00:00
64c8bc6b40 Use upstream YouCompleteMe on macOS
The oblitum fork of YouCompleteMe is getting dated and uses LLVM 4.0 on
macOS, this results in erroneous errors in the system headers on macOS
since it's not been updated to match upstream. Use Valloric's repo to
avoid these errors on macOS.
2018-10-04 10:20:02 +01:00
25c18763bc Move ale highlight groups to fresh colorscheme 2018-09-05 19:08:19 +01:00
53c971b802 Use vim-coiled-snake instead of custom Python fold 2018-09-03 22:16:40 +01:00
531502633f Add ~/.config/work to runtimepath
Enable using work specific config from a separate repository.
2018-08-26 13:25:37 +01:00
3757da8e96 Improve vim-spirv ID match highlights 2018-08-26 10:51:11 +01:00
0db9d470ee Use signcolumn when available 2018-08-26 10:51:11 +01:00
e7c20a3cc5 Add vim-projectionist plugin 2018-08-26 10:51:11 +01:00
5391645629 Use own fork for vim-cmake-completion 2018-08-26 10:51:11 +01:00