2022-08-18 19:15:03 +00:00
|
|
|
{ config, lib, pkgs, user, theme, ... }:
|
2022-06-26 12:42:49 +00:00
|
|
|
|
2022-07-21 13:51:18 +00:00
|
|
|
let
|
|
|
|
cmp-nvim-lsp-signature-help = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "cmp-nvim-lsp-signature-help";
|
2023-02-27 07:33:33 +00:00
|
|
|
version = "2023-02-27";
|
2022-07-21 13:51:18 +00:00
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "hrsh7th";
|
|
|
|
repo = "cmp-nvim-lsp-signature-help";
|
2023-02-27 07:33:33 +00:00
|
|
|
rev = "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1";
|
|
|
|
sha256 = "sha256-yDxYvjTIeXIKYR3tg+bf+okXKr5JYc/I9obP+6uKey4=";
|
2022-07-21 13:51:18 +00:00
|
|
|
};
|
|
|
|
meta.homepage = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help";
|
|
|
|
};
|
2022-07-25 06:48:10 +00:00
|
|
|
|
|
|
|
lsp_lines-nvim = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "lsp_lines.nvim";
|
2023-02-27 07:33:33 +00:00
|
|
|
version = "2023-02-27";
|
2022-07-25 06:48:10 +00:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim";
|
2023-02-27 07:33:33 +00:00
|
|
|
rev = "ec98b45c8280e5ef8c84028d4f38aa447276c002";
|
|
|
|
sha256 = "sha256-HjLCfuvZZ7vTJT0Te5VBRLNWvWIBFBou1Mvoxe2Hi3c=";
|
2022-07-25 06:48:10 +00:00
|
|
|
};
|
|
|
|
meta.homepage = "https://git.sr.ht/~whynothugo/lsp_lines.nvim";
|
|
|
|
};
|
2022-08-05 12:25:44 +00:00
|
|
|
pre-commit-nvim = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "pre-commit.nvim";
|
|
|
|
version = "2022-08-05";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://github.com/Ttibsi/pre-commit.nvim";
|
|
|
|
rev = "4a608cef0f0a196fa39cdc60579eb9cf601d21c4";
|
|
|
|
sha256 = "Y0biF/yrOX1YYztj8/u0n8zPN4YLGLSQL3vb9I3+3dE=";
|
|
|
|
};
|
|
|
|
meta.homepage = "https://github.com/Ttibsi/pre-commit.nvim";
|
|
|
|
};
|
2023-01-25 09:43:54 +00:00
|
|
|
vim-flog = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "vim-flog";
|
|
|
|
version = "2023-01-24";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://github.com/rbong/vim-flog";
|
2023-02-27 07:33:33 +00:00
|
|
|
rev = "2ba8af2c9682e3560db5b813d10acf3ba3415bc1";
|
|
|
|
sha256 = "sha256-xnzHAc30DD9W9/5s8PvpuBaEUJbB4BJ7WqbNb/CY3mY=";
|
2023-01-25 09:43:54 +00:00
|
|
|
};
|
|
|
|
meta.homepage = "https://github.com/rbong/vim-flog/";
|
|
|
|
};
|
2022-07-21 13:51:18 +00:00
|
|
|
in
|
2022-06-26 12:42:49 +00:00
|
|
|
{
|
2023-03-13 12:52:54 +00:00
|
|
|
home.packages = with pkgs.unstable; [
|
2022-07-07 14:06:53 +00:00
|
|
|
xclip
|
2022-08-04 06:17:20 +00:00
|
|
|
|
|
|
|
# language servers
|
2023-04-11 05:39:46 +00:00
|
|
|
lua-language-server
|
2022-06-26 12:42:49 +00:00
|
|
|
rnix-lsp
|
|
|
|
terraform-ls
|
|
|
|
tflint
|
|
|
|
rust-analyzer
|
2022-08-05 12:25:25 +00:00
|
|
|
nodejs
|
2022-08-04 06:17:20 +00:00
|
|
|
nodePackages.bash-language-server
|
2022-06-26 19:12:32 +00:00
|
|
|
nodePackages.yaml-language-server
|
2022-08-04 06:17:20 +00:00
|
|
|
nodePackages.prettier
|
|
|
|
nodePackages.eslint_d
|
|
|
|
nodePackages.typescript-language-server
|
|
|
|
nodePackages.typescript
|
|
|
|
nodePackages.dockerfile-language-server-nodejs
|
2023-04-11 05:40:10 +00:00
|
|
|
nodePackages.vscode-langservers-extracted
|
2022-08-23 09:46:14 +00:00
|
|
|
lldb
|
|
|
|
vscode-extensions.vadimcn.vscode-lldb
|
2022-06-26 12:42:49 +00:00
|
|
|
];
|
|
|
|
|
2022-08-23 09:46:14 +00:00
|
|
|
# symlink for a stable path
|
2023-03-13 12:52:54 +00:00
|
|
|
home.file.".vscode-extensions/vscode-lldb".source = pkgs.unstable.vscode-extensions.vadimcn.vscode-lldb;
|
2022-08-23 09:46:14 +00:00
|
|
|
|
2022-12-08 13:09:51 +00:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
2023-03-13 12:52:54 +00:00
|
|
|
# package = pkgs.unstable.neovim;
|
|
|
|
plugins = with pkgs.unstable.vimPlugins; [
|
2022-06-26 12:42:49 +00:00
|
|
|
# theme
|
|
|
|
nvim-solarized-lua
|
|
|
|
|
|
|
|
delimitMate
|
|
|
|
vim-bbye
|
|
|
|
ansible-vim
|
|
|
|
|
2023-01-25 09:44:25 +00:00
|
|
|
# ui
|
|
|
|
dressing-nvim
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
# session handling
|
2022-07-21 06:24:04 +00:00
|
|
|
project-nvim
|
|
|
|
auto-session
|
2022-06-26 12:42:49 +00:00
|
|
|
|
2022-12-07 14:11:38 +00:00
|
|
|
nvim-treesitter.withAllGrammars
|
2022-06-26 12:42:49 +00:00
|
|
|
markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" })
|
|
|
|
toggleterm-nvim
|
|
|
|
nvim-notify
|
|
|
|
comment-nvim
|
|
|
|
lualine-nvim
|
|
|
|
tabline-nvim
|
|
|
|
indent-blankline-nvim
|
|
|
|
plenary-nvim
|
2022-07-13 06:47:26 +00:00
|
|
|
vim-illuminate
|
2022-07-07 14:06:53 +00:00
|
|
|
registers-nvim
|
2022-08-05 12:25:44 +00:00
|
|
|
pre-commit-nvim
|
2023-04-11 05:40:34 +00:00
|
|
|
vim-surround
|
2022-06-26 12:42:49 +00:00
|
|
|
|
2023-04-12 07:57:29 +00:00
|
|
|
editorconfig-nvim
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
# git
|
|
|
|
gitsigns-nvim
|
|
|
|
vim-fugitive
|
2023-01-25 09:43:54 +00:00
|
|
|
vim-flog
|
2022-08-30 14:54:26 +00:00
|
|
|
git-blame-nvim
|
2022-09-19 05:52:06 +00:00
|
|
|
nvim-web-devicons # used by diffview-nvim
|
2022-06-26 12:42:49 +00:00
|
|
|
|
|
|
|
# snippets
|
|
|
|
friendly-snippets
|
|
|
|
luasnip
|
|
|
|
|
|
|
|
# auto-completion
|
|
|
|
nvim-cmp
|
|
|
|
cmp-nvim-lsp
|
|
|
|
cmp-buffer
|
|
|
|
cmp-path
|
|
|
|
cmp-cmdline
|
|
|
|
cmp-nvim-lua
|
|
|
|
cmp_luasnip
|
|
|
|
cmp-calc
|
2022-07-21 13:51:18 +00:00
|
|
|
cmp-nvim-lsp-signature-help
|
2022-06-26 12:42:49 +00:00
|
|
|
|
|
|
|
# telescope
|
|
|
|
telescope-nvim
|
|
|
|
telescope-fzf-native-nvim
|
|
|
|
telescope-ui-select-nvim
|
2022-12-25 11:48:58 +00:00
|
|
|
telescope-file-browser-nvim
|
2022-06-26 12:42:49 +00:00
|
|
|
|
|
|
|
# LSP
|
|
|
|
nvim-lspconfig
|
|
|
|
lsp-status-nvim
|
|
|
|
rust-tools-nvim
|
2022-12-07 14:11:38 +00:00
|
|
|
neodev-nvim
|
2022-07-21 12:02:12 +00:00
|
|
|
null-ls-nvim
|
2022-07-25 06:48:10 +00:00
|
|
|
lsp_lines-nvim
|
2022-08-23 09:46:14 +00:00
|
|
|
|
|
|
|
# debugging
|
|
|
|
nvim-dap
|
|
|
|
nvim-dap-ui
|
2022-06-26 12:42:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
lua << EOF
|
2022-09-26 05:50:10 +00:00
|
|
|
vim.o.guifont = "DejaVu Sans Mono:h10"
|
2022-07-13 14:01:34 +00:00
|
|
|
|
|
|
|
if vim.g.neovide then
|
2022-07-18 13:02:52 +00:00
|
|
|
vim.g.neovide_fullscreen = true
|
2022-07-13 14:01:34 +00:00
|
|
|
vim.g.neovide_cursor_animation_length = 0.01
|
|
|
|
vim.g.neovide_cursor_trail_length = 0.01
|
|
|
|
end
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
${builtins.readFile ./keymaps.lua }
|
|
|
|
${builtins.readFile ./options.lua }
|
|
|
|
${builtins.readFile ./treesitter.lua }
|
|
|
|
${builtins.readFile ./lspconfig.lua }
|
|
|
|
${builtins.readFile ./toggleterm.lua }
|
|
|
|
${builtins.readFile ./notify.lua }
|
|
|
|
${builtins.readFile ./comment.lua }
|
|
|
|
${builtins.readFile ./lualine.lua }
|
|
|
|
${builtins.readFile ./tabline.lua }
|
|
|
|
${builtins.readFile ./indent-blankline.lua }
|
|
|
|
${builtins.readFile ./gitsigns.lua }
|
|
|
|
${builtins.readFile ./luasnip.lua }
|
|
|
|
${builtins.readFile ./nvim-cmp.lua }
|
|
|
|
${builtins.readFile ./telescope.lua }
|
2022-08-18 19:15:03 +00:00
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
${builtins.readFile ./themes.lua }
|
2022-08-18 19:15:03 +00:00
|
|
|
vim.opt.background = '${theme}'
|
|
|
|
|
2022-07-21 06:24:04 +00:00
|
|
|
${builtins.readFile ./project-nvim.lua }
|
2022-08-23 09:46:14 +00:00
|
|
|
${builtins.readFile ./dap.lua }
|
2022-09-02 12:05:58 +00:00
|
|
|
|
|
|
|
vim.g.gitblame_date_format = "%r"
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-08-05 12:25:44 +00:00
|
|
|
|