Commit Graph

294 Commits

Author SHA1 Message Date
Paul Stemmet 9add4b0481
nvim: add psoxizsh.lsp.keys
This is our inhouse overrides over LazyVim's key maps for the LSP on_attach
function.

Unfortunately there's no good way to do this, other than directly
mutating the key binds LazyVim creates
2024-08-31 18:28:03 +00:00
Paul Stemmet 0a15980464
nvim: add psoxizsh.plugins.editor 2024-08-31 18:28:03 +00:00
Paul Stemmet 388b6daa3a
nvim: add psoxizsh.plugins.treesitter 2024-08-31 18:28:03 +00:00
Paul Stemmet ecb1bc2965
nvim: add psoxizsh.plugins.ui 2024-08-31 18:28:03 +00:00
Paul Stemmet 1613c7b94d
nvim: add psoxizsh.plugins.colorscheme 2024-08-31 18:28:03 +00:00
Paul Stemmet 3a56818202
nvim: add psoxizsh.plugins.core 2024-08-31 18:28:02 +00:00
Paul Stemmet cf879d6999
nvim: add psoxizsh.lsp.preset servers 2024-08-31 18:28:02 +00:00
Paul Stemmet b22285ef0f
nvim: add psoxizsh.lsp.core
Adds back some of the functionality of the late lsp.server, such that we
can paper over the exact implementation details of _how_ we're enabling
the language server.

In practice, this will allow us to create a bunch of preset
PsoxizshLspServer types, which users can then opt into enabling in their
plugin/* configs
2024-08-31 18:28:02 +00:00
Paul Stemmet f4a32dc0ba
nvim: add submodule lazy.nvim 2024-08-31 18:28:02 +00:00
Paul Stemmet fff545ce8a
nvim: rm psoxizsh.plugins.plug
this is will be broken up and readded in future commits, to conform with
the LazyVim method of plugin config
2024-08-31 18:28:01 +00:00
Paul Stemmet 85081d79b0
nvim: rm old psoxizsh.lsp.{preset,servers,util} modules 2024-08-31 18:28:01 +00:00
Paul Stemmet ad7f34b624
nvim: rm orphaned modules psoxizsh.{plugins.bootstrap,diagnostic}
these are superseded by lazy.nvim's superior bootstrap process, and
LazyVim's builtin diagnostic configuration
2024-08-31 18:28:01 +00:00
Paul Stemmet 5e80c28f26
repo: rm examples/ nvim/spellfile
these are not relevant or useful, anymore.
2024-08-31 18:28:00 +00:00
Paul Stemmet 53ade04eb5
repo: update submodules 2024-08-31 18:28:00 +00:00
Paul Stemmet 2c08b914c1
merge: develop <--- feature/nvim-0.9-updates
* HEAD
| \
| * ad66707 <github@luxolus.com> nvim: update plugins for nvim v0.9
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2024-07-07 21:31:35 +00:00
Paul Stemmet ad6670791a
nvim: update plugins for nvim v0.9
Largely, this is simply bumping versions and fixing a few configurations
that were changed in newer versions of the plugins.

I did however notice our package manager (packer.nvim) is orphaned now,
and I need to switch to a different one in the near future...
2024-07-07 21:30:47 +00:00
psox st8l 45d7789e15 Update git sub-modules and add zsh-vi-mode
- cloned oh-my-zsh to dolysis the repo and replaced it here
  upstream should now be https://git.st8l.com/dolysis/ohmyzsh.git
2023-11-19 13:35:53 +00:00
Paul Stemmet f02c998488
merge: develop <--- feature/null-ls-cspell
* HEAD
| \
| * 3e1e459 <github@luxolus.com> nvim/plug: add null-ls.nvim@main, cspell.nvim@main
| * 5311f20 <github@luxolus.com> nvim/plug: rm cmp-spell
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2023-06-08 15:37:12 +00:00
Paul Stemmet 3e1e459c50
nvim/plug: add null-ls.nvim@main, cspell.nvim@main
These gives us back the ability to use cspell, which was lost in the
transition from coc-nvim to our current lua based setup.

However, it requires the following to take effect:

1. Have nodejs installed (nvm is fine)
2. Run ':MasonInstall cspell'
3. Run ':PackerCompile'
4. Restart

All goes well, when you next open nvim, you should have cspell powered
spell checking and :LspInfo should show null-ls running.

Word substitutes triggered via:
  @Buffer.Lsp.N.Leader.CodeAction

Next/Prev word (or other diagnostic) via:
  @Global.N.DiagnosticNext
  @Global.N.DiagnosticPrev

Where @ = nvim/lua/psoxizsh/key/bind.lua
2023-06-08 15:10:46 +00:00
Paul Stemmet 5311f2013e
nvim/plug: rm cmp-spell
This will be superseded by the coming cspell integration
2023-06-08 15:09:54 +00:00
Paul Stemmet f4cc11581f
merge: develop <--- fix/misc
* HEAD
| \
| * 707f9da <github@luxolus.com> nvim/plug/cmp: various fixes
| * c9d7e5c <github@luxolus.com> nvim/key/map: fix Lsp.FormatDocument action
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2023-06-04 22:02:08 +00:00
Paul Stemmet 707f9daafe
nvim/plug/cmp: various fixes
- Pull completions from all buffers, not just current
- Limit total items to 15
- Better organization of cmd completions
2023-06-04 22:00:26 +00:00
Paul Stemmet c9d7e5ca50
nvim/key/map: fix Lsp.FormatDocument action
neovim moved buf.formatting to buf.format, a while back, leaving this as
effectively setting `action = null`, which throws warnings on start; so
we fix that.
2023-06-04 21:25:56 +00:00
Paul Stemmet 5f07c09d46
merge: develop <--- feature/improve-cmp-cmdline
* HEAD
| \
| * 7c38526 <github@luxolus.com> nvim/plug: improve cmdline (:) completions
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2023-04-02 16:00:20 +00:00
Paul Stemmet 7c385263f1
nvim/plug: improve cmdline (:) completions
This commit enables nvim-cmp's cmdline completion support, overriding
the builtin neovim's.

We gain a nicer menu, more sources (paths, history), and a slightly more
intelligent listing with some support for file specific commands (e, r,
w).

We also switch out the 'path' completion source with 'async_path',
preventing delays / freezes when traversing slow or large fs trees
2023-04-02 15:56:01 +00:00
Paul Stemmet 79a7215464
merge: develop <--- feature/sumneko-to-lua-ls
* HEAD
| \
| * 3110368 <github@luxolus.com> nvim/lsp: preset.Lua sumneko_lua -> lua_ls
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2023-04-02 14:57:28 +00:00
Paul Stemmet 31103686c5
nvim/lsp: preset.Lua sumneko_lua -> lua_ls
As the server has been renamed in lspconfig

References: 501cfd09b9
2023-04-02 14:56:42 +00:00
Paul Stemmet e10d704780
merge: develop <--- fix/colorscheme-name
* HEAD
| \
| * c7039c1 <github@luxolus.com> nvim/init: g.my_color_scheme: onedarkpro->onedark
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2023-01-02 11:30:52 +00:00
Paul Stemmet c7039c10da
nvim/init: g.my_color_scheme: onedarkpro->onedark
Fixes breaking change in upstream.

Upstream-Ref: e3369ba112
2023-01-02 11:27:11 +00:00
Paul Stemmet 3fbebc60e3
merge: develop <--- feature/code-action
* HEAD
| \
| * a46119d <github@luxolus.com> nvim/psoxizsh: misc. tidying of init scripts
| * 70eb4b4 <github@luxolus.com> nvim/key: Buffer.Lsp.N.Leader.CodeAction
| * 9a41cb4 <github@luxolus.com> nvim/plug: +dressing@master
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-12-09 20:23:54 +00:00
Paul Stemmet a46119d7b8
nvim/psoxizsh: misc. tidying of init scripts
Some formatting changes, and an improvement to ReloadConfig/0 to print
out a message when configuration has been reloaded
2022-12-09 20:23:39 +00:00
Paul Stemmet 70eb4b400a
nvim/key: Buffer.Lsp.N.Leader.CodeAction 2022-12-09 20:23:39 +00:00
Paul Stemmet 9a41cb4bb4
nvim/plug: +dressing@master
This is a plugin which overrides vim.prompt and vim.input handlers,
providing Telescope integration, and a much more pleasant experience
over the default menus provided by nvim.

The primary reason for this plugin is vim.lsp.buf.code_action/1, which
uses vim.input.
2022-12-09 20:23:39 +00:00
Paul Stemmet 08761102fd
merge: develop <--- fix/keymap-group-newindex
* HEAD
| \
| * 6978596 <github@luxolus.com> nvim/key: add __newindex meta to bind.Group
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-12-09 20:23:26 +00:00
Paul Stemmet 6978596066
nvim/key: add __newindex meta to bind.Group
This allows callers of the struct to perform the more normal '='
assignment and have sane behavior.

Previously, this would not do what one expects when used with bind.Bind
or other bind.Group(s): it merely adds them to the Group object
directly, not adding it to the ._children table or downward propagating
the Group's settings.

This is fixed here, by adding a __newindex metamethod to the bind.Group
object, which checks to see if the addition is a known Bind or Group
type, and does the right if it is, falling back to the previous behavior
if it isn't
2022-12-09 20:23:12 +00:00
Paul Stemmet 9be9933052
merge: develop <--- fix/load-file-autos-early
* HEAD
| \
| * 7a1ce7b <github@luxolus.com> nvim/psoxizsh: move PsoxFileAutos to early config
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-12-09 20:22:49 +00:00
Paul Stemmet 7a1ce7b98a
nvim/psoxizsh: move PsoxFileAutos to early config
As otherwise it appears they load too late, and will sporadically be
ignored when loading files.
2022-12-09 20:22:08 +00:00
Paul Stemmet 0553bbc116
merge: develop <--- fix/unclobber-module-errors
* HEAD
| \
| * ff33cf5 <github@luxolus.com> nvim/util: report mload module errors
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-12-09 20:21:41 +00:00
Paul Stemmet ff33cf52d9
nvim/util: report mload module errors
This commit unclobbers syntax and other errors that can occur when
loading a module.

Previously, we just pcall/2'd any inputs and silently assumed that any
error reported meant the module didn't exist. The changes within add a
third branch to the mix: EXISTS, NOT_FOUND, and LOAD_ERR.

We keep the previous behaviour of not throwing when an error is
detected, but we do print out a big, red, angry message now.

As a side note, this should also slightly improve performance, due to
less errors being thrown; on account of us manually detecting whether a
module exists or not.
2022-12-09 20:21:15 +00:00
psox 6e8bbd4e22 README.md: Update to reflect new repository 2022-11-10 18:45:26 +00:00
psox b4ac43c337 examples/nvim: Added some example files
These file should be added to ~/.config/nvim and can be used as
the basis for customizations you want to add
2022-11-10 18:30:14 +00:00
psox b95014ff08 zshrc: fix issue with paru alias 2022-11-10 18:29:26 +00:00
Paul Stemmet 43a20358cc
merge: develop <--- fix/cmp-lsp-and-lua-dev-rename
* HEAD
| \
| * eaa530e <github@luxolus.com> nvim/plug: lua-dev -> neodev
| * 5798da7 <github@luxolus.com> nvim/plug/lspconfig: use cmp.defaults_capabilities/0
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-10-29 20:43:42 +00:00
Paul Stemmet eaa530e16d
nvim/plug: lua-dev -> neodev
plugin was renamed upstream, and now provides a hook for lspconfig,
making our override/1 work more in line with the standard 'override
the lspconfig.setup/1 param' that most of the other presets follow.
2022-10-29 20:15:44 +00:00
Paul Stemmet 5798da7368
nvim/plug/lspconfig: use cmp.defaults_capabilities/0
cmp.update_capabilities are deprecated as of hrsh7th/cmp-nvim-lsp@389f06d,
so use replacement instead.
2022-10-29 18:27:19 +00:00
Paul Stemmet dc8168aeed
merge: develop <--- fix/gitsigns-nvim-080
* HEAD
| \
| * eb0a6b1 <github@luxolus.com> nvim/plug: gitsigns.branch = main
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-10-08 20:28:35 +00:00
Paul Stemmet eb0a6b1899
nvim/plug: gitsigns.branch = main
Until lewis6991/gitsigns.nvim#613 is fixed
2022-10-08 20:26:34 +00:00
Paul Stemmet 846a710863
merge: develop <--- fix/various-plugin-configs
* HEAD
| \
| * 9f1587f <github@luxolus.com> nvim/spellfile: add more common words
| * b62a59e <github@luxolus.com> nvim/plug/cmp-spell: fix path expansion
| * 9e6a96c <github@luxolus.com> nvim/diagnostic: clobber repeated diagnostic floats
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-10-08 18:17:08 +00:00
Paul Stemmet 9f1587fe24
nvim/spellfile: add more common words 2022-10-08 18:12:24 +00:00
Paul Stemmet 9199326bf3
merge: develop <--- feature/nvim-super-keys
* HEAD
| \
| * 8d00216 <github@luxolus.com> nvim/key: add Super keys
| * 15e7729 <github@luxolus.com> nvim/plug: +toggleterm.nvim@v2
| * 69974b4 <github@luxolus.com> nvim/plug: +trouble.nvim@master
| * d6f7bba <github@luxolus.com> nvim/plug: +telescope.nvim@0.1.x, -fzf, -fzf.nvim
| * 3cb079b <github@luxolus.com> nvim/plug/neotree: <F2> -> <C-Left>
| /
| develop

Signed-off-by: Bazaah <github@luxolus.com>
2022-10-08 18:11:09 +00:00