Donovan Glover
f91bf00256
chore: Remove redundant build tools from global environment
...
These *shouldn't* be needed since if a package requires these tools,
they'll have their own nix derivation.
2024-04-18 16:58:05 -04:00
Donovan Glover
fbb09fea48
neovim: Specify defaultEditor at the home-manager level
...
Does the same thing (with the exception of VISUAL not being set for now)
but makes the module more portable overall.
2024-04-18 13:44:25 -04:00
Donovan Glover
482c7a18e0
neovim: Use extraPackages for LSP packages
...
Prevents these packages from "polluting" the global namespace.
2024-04-18 12:49:14 -04:00
Donovan Glover
18e291822c
neovim: Drop plenary-nvim
...
This *shouldn't* be needed since it's a dependency of other vim plugins
and the dependency *should* automatically be handled at the nix level.
2024-04-18 11:02:00 -04:00
Donovan Glover
945bd13e4f
feat: Replace vim-nix-rummik with treesitter (again)
...
The latest treesitter changes actually make using it better than the old
vim-nix-rummik solution. Syntax highlighting works quite well for the
/* lang */ code blocks.
2024-04-18 10:53:17 -04:00
Donovan Glover
7f60479a90
chore: Run nix fmt
...
Also removed an unnecessary variable and added syntax highlighting.
2024-04-17 13:54:37 -04:00
Donovan Glover
ad97031749
feat: Drop Go from neovim config
...
I am no longer interested in programming in the Go programming language
and prefer the holy trinity that is Nix, TypeScript, and Rust.
2024-04-17 12:27:29 -04:00
Donovan Glover
5097231e2a
feat: Drop docker language servers
...
I am no longer interested in developing Dockerfiles or
docker-compose.yml files since I am fully committed to Nix.
By sticking with one technology that gets the job done, it should be
more efficient for me to solve problems with that one domain of
expertise than having mediocre knowledge of several similar tools.
2024-04-17 12:09:36 -04:00
Donovan Glover
763a233829
feat: Drop svelte from neovim config
...
The hype has died down and React has emerged victorious, as expected, in
a battle that never started.
Joking aside, I don't remember the last time I've seen a svelte app
and even if I *did* come across one, I'd much rather work with standard
file types like TypeScript and TSX, of which this neovim config has
first-class support for.
2024-04-17 11:48:24 -04:00
Donovan Glover
142cc4593d
neovim: Drop obsidian-nvim
...
Not sure why I added this but it seems like I have pretty great support
for markdown files without this, and I'd rather leverage my existing
toolkit of tools that do one thing and do it well.
2024-04-17 11:15:20 -04:00
Donovan Glover
941affa8df
neovim: Drop toggleterm-nvim
...
I never used this and just ended up creating new terminals with the
standard kitty workflow.
2024-04-17 11:13:51 -04:00
Donovan Glover
2cbcb8d7eb
neovim: Drop alpha-nvim startify
...
This was cute but I wasn't actually using it and it was increasing the
startup time of neovim by a whopping 600 milliseconds on average.
2024-04-16 20:49:40 -04:00
Donovan Glover
8535a06e52
chore: Improve formatting
2024-04-06 14:25:10 -04:00
Donovan Glover
7649c658b7
meta: Merge packages module into existing modules
2024-04-06 11:49:03 -04:00
Donovan Glover
e2e8971eb3
chore: Simplify variable usage
...
Changes made:
- Preferred "inherits" where possible
- Removed unnecessary comments
- Added variables to avoid duplicate strings
- Reduced usage of "with x;"
2024-04-05 13:30:39 -04:00
Donovan Glover
1d165d3068
neovim: Add syntax highlighting for glsl
...
Note that it may be easier to use treesitter highlighting by default.
2024-04-01 19:45:22 -04:00
Donovan Glover
d21ae69f39
chore: Fix formatting
2024-04-01 18:47:33 -04:00
Donovan Glover
c33ff6bd5e
feat(neovim): Add rainbow-delimiters.nvim
...
Rainbow parentheses were traditionally buggy with the plugins I used but
nowadays there are newer plugins available that use more flexible
technologies like treesitter.
See: https://github.com/hiphish/rainbow-delimiters.nvim
2024-04-01 15:04:33 -04:00
Donovan Glover
e236ab2dae
chore: Improve formatting
2024-03-30 11:30:33 -04:00
Donovan Glover
f1a5aa8520
neovim: Add border to nvim-lspconfig popups
...
This makes it easier to differentiate code from lsp popups.
2024-03-30 08:12:23 -04:00
Donovan Glover
ed0dec1e06
neovim: Add obsidian-nvim
...
Seems to be better than the last time I tried it.
2024-03-25 13:55:08 -04:00
Donovan Glover
a169b39f8c
packages: Drop alejandra
...
Not needed anymore since nixfmt-rfc-style exists.
2024-03-25 11:49:04 -04:00
Donovan Glover
1287f7dabc
chore: Fix formatting
2024-03-09 17:48:18 -05:00
Donovan Glover
a7877944f4
neovim: Prefer vista-vim over tagbar
...
Vista supports both ctags and nvim_lsp, letting it be used for
TypeScript and other languages not supported by default with ctags.
2024-03-09 11:52:41 -05:00
Donovan Glover
b438641363
neovim: Drop vim-endwise to fix crash with treesitter
...
Recent updates to neovim and/or its plugins made neovim start to crash
when typing curly braces like {}. I narrowed the issue down to vim-endwise,
which I no longer need since the current languages I use prefer curly
braces over end keywords.
Related: https://github.com/tpope/vim-endwise/issues/144
2024-03-08 22:31:43 -05:00
Donovan Glover
bfc5f5320f
meta: Replace nixfmt with nixfmt-rfc-style
...
This repository still uses nixpkgs-fmt but it may be interesting to use
nixfmt-rfc-style in the future.
2024-03-08 20:07:23 -05:00
Donovan Glover
d9f61cdad9
neovim: Drop cosco-vim
...
Didn't end up using the automatic semicolons nearly as much.
2024-03-08 19:58:58 -05:00
Donovan Glover
9ed00dbea0
neovim: Drop clipboard-image-nvim
...
Logseq is slow but convenient. Ultimately it probably makes sense to use
Logseq as it's "good enough" instead of trying to make a neovim setup
work (which is more suited for programming).
2024-03-07 21:59:32 -05:00
Donovan Glover
98a2ccf147
neovim: Use treesitter for astro/css over astro-vim
...
Improves syntax highlighting.
2024-02-28 07:33:25 -05:00
Donovan Glover
6d047a9567
chore: Update to latest nixos-unstable-small release
...
cargo-audit has been dropped to fix an issue with libgit2, which should
be fixed in 1-2 weeks or so. Additionally, nvim-base16 has been renamed
to base16-nvim, which is currently only recognized on -small.
2024-02-19 08:28:34 -05:00
Donovan Glover
17ebae09d3
neovim: Use language servers for html/css/json
2024-02-15 23:55:31 -05:00
Donovan Glover
f2ff938e79
chore: Remove unnecessary comments
2024-02-08 22:51:22 -05:00
Donovan Glover
69b7e09c31
chore: Use tailwindcss-colors-nvim from nixpkgs
...
No need to define this manually now that it's upstreamed.
2024-02-08 22:39:02 -05:00
Donovan Glover
74db7848f3
neovim: Only use treesitter highlighting for js/ts
...
Treesitter highlighting seems to be a downgrade in some cases, so I'm
okay with disabling it for most files.
2024-01-31 07:03:19 -05:00
Donovan Glover
852299de1a
neovim: Add docker language servers
2024-01-29 18:16:41 -05:00
Donovan Glover
e2d69c199d
Revert "neovim: Replace vim-nix-rummik with treesitter"
...
treesitter actually broke syntax highlighting for things like yaml, so I
prefer the rummik branch for now.
2024-01-17 21:24:50 -05:00
Donovan Glover
c4b766309d
neovim: Drop image-nvim for now
...
image-nvim is currently broken in nixpkgs, however it should be fixed
with an open pull request.
2024-01-13 00:30:35 -05:00
Donovan Glover
77b1715c2f
chore: Re-enable typst-lsp
...
Build is fixed now.
2024-01-12 07:21:13 -05:00
Donovan Glover
f42793623d
neovim: Replace vim-nix-rummik with treesitter
...
This was my attempt at replacing vim-nix-rummik with treesitter. Note
that there was actually a case where inline yaml wasn't highlighted at
all, so I'll probably stick to the tried and true vim-nix-rummik, even
if it has the parentheses bug with lua.
2024-01-12 04:29:19 -05:00
Donovan Glover
49cc04114e
neovim: Enable treesitter highlighting
...
This works, however some of the syntax highlighting with treesitter
feels worse compared to the default syntax highlighting, so it may be
more useful to keep it disabled.
2024-01-12 04:26:02 -05:00
Donovan Glover
1363c3800f
feat: Add cargo-edit
...
Used for the "cargo upgrade" command, which also updates the Cargo.toml.
Should eventually be upstreamed to cargo. Currently cargo-edit has some
issues with the index it uses, resulting in long loading times.
See: https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101
2024-01-05 23:02:11 -05:00
Donovan Glover
5c29be9a01
neovim: Make commenting work with jsx/tsx
2023-12-30 17:36:13 -05:00
Donovan Glover
d44114519a
neovim: Add tailwindcss-colors.nvim
...
May be upstreamed by https://github.com/NixOS/nixpkgs/pull/277632
2023-12-29 19:47:14 -05:00
Donovan Glover
859015cbc0
neovim: Add missing eslint capabilities
2023-12-29 17:56:32 -05:00
Donovan Glover
0c3624abd6
neovim: Add sql language server support
2023-12-29 17:54:56 -05:00
Donovan Glover
360898f626
neovim: Use eslint with nvim-lspconfig
...
Note that sometimes you may need to disable autosave with :ASToggle
since JavaScript code is also automatically formatted on save.
2023-12-29 17:33:52 -05:00
Donovan Glover
c77be65f86
feat: Add cargo-tarpaulin
...
Used for Rust code coverage.
2023-12-21 14:01:51 -05:00
Donovan Glover
5a08ca328c
neovim: Use yats-vim for TypeScript syntax highlighting
...
This fixes an issue where `import`s with `type` in them would cause
syntax highlighting to break in neovim.
See: https://github.com/vim/vim/issues/11652
2023-12-20 18:24:06 -05:00
Donovan Glover
7fde54fa58
neovim: Add nvim-surround
...
This classic plugin makes refactoring in languages that use curly braces
much easier.
2023-12-20 18:19:37 -05:00
Donovan Glover
328a912148
neovim: Use :NvimTreeFocus for <leader>a
...
Fixes an issue where the previous binding conflicted with the tagbar not
accepting space keybinds.
2023-12-20 18:16:19 -05:00