2026-06-19 07:36:13 +10:00
|
|
|
{ config, lib, pkgs, sysConfig, ... }:
|
2021-10-09 20:34:20 +07:00
|
|
|
let
|
|
|
|
|
luaconf = pkgs.writeText "config.lua"
|
2023-02-23 22:48:03 +07:00
|
|
|
(lib.replaceStrings
|
2026-06-19 07:36:13 +10:00
|
|
|
["{{OMNISHARP_PATH}}" "{{DART_PATH}}" "{{CATPPUCCIN_FLAVOUR}}" "{{USERNAME}}" "{{HOSTNAME}}"]
|
|
|
|
|
["${pkgs.omnisharp-roslyn}/bin/OmniSharp" "${pkgs.dart}/bin/dart" config.catppuccin.nvim.flavor config.home.username sysConfig.networking.hostName]
|
2021-10-09 20:34:20 +07:00
|
|
|
(builtins.readFile ../../res/config.lua));
|
|
|
|
|
in {
|
|
|
|
|
systemd.user.tmpfiles.rules = [
|
|
|
|
|
"D %t/vim/swap 0755 - - - -"
|
|
|
|
|
"D %t/vim/undo 0755 - - - -"
|
|
|
|
|
];
|
2021-05-20 14:02:49 +07:00
|
|
|
programs.neovim = {
|
|
|
|
|
enable = true;
|
|
|
|
|
viAlias = true;
|
|
|
|
|
vimAlias = true;
|
|
|
|
|
vimdiffAlias = true;
|
2023-01-23 22:17:49 +07:00
|
|
|
#package = pkgs.neovim-nightly;
|
2021-10-09 20:34:20 +07:00
|
|
|
withNodeJs = true;
|
2026-05-28 21:21:49 +10:00
|
|
|
withPython3 = true;
|
|
|
|
|
withRuby = false;
|
2021-10-09 20:34:20 +07:00
|
|
|
|
|
|
|
|
extraPackages = with pkgs; [
|
2026-06-19 07:36:13 +10:00
|
|
|
nixd
|
2021-10-09 20:34:20 +07:00
|
|
|
rust-analyzer
|
2025-08-27 17:28:29 +10:00
|
|
|
texlab
|
2026-05-10 22:44:46 +10:00
|
|
|
astro-language-server
|
|
|
|
|
tailwindcss-language-server
|
|
|
|
|
diagnostic-languageserver
|
|
|
|
|
eslint_d
|
|
|
|
|
typescript-language-server
|
|
|
|
|
vscode-langservers-extracted
|
|
|
|
|
yaml-language-server
|
2021-10-09 20:34:20 +07:00
|
|
|
];
|
2021-05-20 14:02:49 +07:00
|
|
|
|
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
2025-08-17 23:25:30 +10:00
|
|
|
autoclose-nvim
|
2025-08-18 00:11:28 +10:00
|
|
|
auto-save-nvim
|
2023-02-23 22:36:29 +07:00
|
|
|
flutter-tools-nvim
|
2022-04-10 13:25:22 +07:00
|
|
|
fzf-vim
|
|
|
|
|
fzf-lsp-nvim
|
2021-07-05 15:03:57 +07:00
|
|
|
lualine-nvim
|
2025-08-17 23:32:23 +10:00
|
|
|
nvim-ts-autotag
|
2025-08-17 23:25:30 +10:00
|
|
|
nvim-web-devicons
|
2022-10-05 13:45:30 +07:00
|
|
|
plenary-nvim
|
2021-07-05 15:03:57 +07:00
|
|
|
tokyonight-nvim
|
2021-08-19 19:13:29 +07:00
|
|
|
vim-fugitive
|
2025-07-17 17:42:43 +10:00
|
|
|
vim-latex-live-preview
|
2021-05-20 14:02:49 +07:00
|
|
|
vim-nix
|
2021-05-30 22:09:45 +07:00
|
|
|
vim-repeat
|
2021-08-19 16:56:50 +07:00
|
|
|
vim-signify
|
2021-05-20 14:02:49 +07:00
|
|
|
vim-surround
|
2025-01-15 23:21:25 +11:00
|
|
|
vimtex
|
2022-04-10 13:25:22 +07:00
|
|
|
lsp_signature-nvim
|
2021-05-20 14:02:49 +07:00
|
|
|
|
2021-10-09 20:34:20 +07:00
|
|
|
nvim-cmp
|
2023-02-23 22:41:41 +07:00
|
|
|
nvim-dap
|
2025-08-17 23:09:58 +10:00
|
|
|
nvim-highlight-colors
|
2021-10-09 20:34:20 +07:00
|
|
|
nvim-lspconfig
|
|
|
|
|
cmp-nvim-lsp
|
|
|
|
|
cmp_luasnip
|
|
|
|
|
luasnip
|
|
|
|
|
|
2023-01-23 22:17:49 +07:00
|
|
|
#(pkgs.me.nvim-treesitter-nightly.withPlugins (p: with p; [
|
|
|
|
|
(nvim-treesitter.withPlugins (p: with p; [
|
2025-08-17 23:06:33 +10:00
|
|
|
tree-sitter-astro
|
2024-01-17 15:45:58 +07:00
|
|
|
tree-sitter-bash
|
|
|
|
|
tree-sitter-c
|
2021-09-01 15:48:11 +07:00
|
|
|
tree-sitter-c-sharp
|
2024-01-17 15:45:58 +07:00
|
|
|
tree-sitter-cpp
|
2025-04-25 00:02:55 +10:00
|
|
|
tree-sitter-groovy
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-html
|
2025-04-15 12:51:55 +10:00
|
|
|
tree-sitter-java
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-javascript
|
|
|
|
|
tree-sitter-json
|
2025-04-15 12:51:55 +10:00
|
|
|
tree-sitter-kotlin
|
2025-07-17 17:42:43 +10:00
|
|
|
tree-sitter-latex
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-lua
|
2024-01-17 15:45:58 +07:00
|
|
|
tree-sitter-markdown
|
2021-07-05 11:24:16 +07:00
|
|
|
tree-sitter-nix
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-php
|
2024-01-17 15:45:58 +07:00
|
|
|
tree-sitter-python
|
|
|
|
|
tree-sitter-query
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-regex
|
2021-07-11 13:54:48 +07:00
|
|
|
tree-sitter-rust
|
2025-04-15 12:51:55 +10:00
|
|
|
tree-sitter-swift
|
2021-07-11 13:54:48 +07:00
|
|
|
tree-sitter-toml
|
2021-09-04 15:08:35 +07:00
|
|
|
tree-sitter-tsx
|
2024-01-17 15:45:58 +07:00
|
|
|
tree-sitter-typescript
|
|
|
|
|
tree-sitter-vim
|
|
|
|
|
tree-sitter-vimdoc
|
2025-04-15 12:51:55 +10:00
|
|
|
tree-sitter-xml
|
2021-07-07 08:28:21 +07:00
|
|
|
tree-sitter-yaml
|
2021-07-05 11:24:16 +07:00
|
|
|
]))
|
2021-05-20 14:02:49 +07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
extraConfig = ''
|
2021-10-09 20:34:20 +07:00
|
|
|
luafile ${luaconf}
|
2021-05-20 14:02:49 +07:00
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
}
|