2022-06-26 12:42:49 +00:00
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
2022-07-21 13:51:18 +00:00
|
|
|
let
|
|
|
|
cmp-nvim-lsp-signature-help = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "cmp-nvim-lsp-signature-help";
|
|
|
|
version = "2022-07-21";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "hrsh7th";
|
|
|
|
repo = "cmp-nvim-lsp-signature-help";
|
|
|
|
rev = "57c4db7d3a663bd31ef60c4b5ed32683301247e9";
|
|
|
|
sha256 = "LKtMrxm9i+yoLYh1NuZsENSScB7MQZrjTFpD9wdpz1M=";
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
version = "2022-01-14";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim";
|
|
|
|
rev = "22ef87c6b2039aac069bfba1c5be5cd26c27b752";
|
|
|
|
sha256 = "prhBuAM1jNxZz7F1SUlUda7dKJ/0eXq3Lw6XB9x7zR8=";
|
|
|
|
};
|
|
|
|
meta.homepage = "https://git.sr.ht/~whynothugo/lsp_lines.nvim";
|
|
|
|
};
|
2022-07-21 13:51:18 +00:00
|
|
|
in
|
2022-06-26 12:42:49 +00:00
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
2022-07-07 14:06:53 +00:00
|
|
|
xclip
|
2022-06-26 12:42:49 +00:00
|
|
|
# LSP
|
|
|
|
sumneko-lua-language-server
|
|
|
|
rnix-lsp
|
|
|
|
terraform-ls
|
|
|
|
tflint
|
|
|
|
nodePackages.bash-language-server
|
|
|
|
rust-analyzer
|
2022-06-26 19:12:32 +00:00
|
|
|
nodePackages.yaml-language-server
|
2022-06-26 12:42:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
# theme
|
|
|
|
nvim-solarized-lua
|
|
|
|
|
|
|
|
delimitMate
|
|
|
|
vim-bbye
|
|
|
|
ansible-vim
|
|
|
|
|
|
|
|
# session handling
|
2022-07-21 06:24:04 +00:00
|
|
|
project-nvim
|
|
|
|
auto-session
|
2022-06-26 12:42:49 +00:00
|
|
|
|
|
|
|
nvim-treesitter
|
|
|
|
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-06-26 12:42:49 +00:00
|
|
|
|
|
|
|
# git
|
|
|
|
gitsigns-nvim
|
|
|
|
vim-fugitive
|
|
|
|
gv-vim
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# LSP
|
|
|
|
nvim-lspconfig
|
|
|
|
lsp-status-nvim
|
|
|
|
rust-tools-nvim
|
|
|
|
lua-dev-nvim
|
2022-07-21 12:02:12 +00:00
|
|
|
null-ls-nvim
|
2022-07-25 06:48:10 +00:00
|
|
|
lsp_lines-nvim
|
2022-06-26 12:42:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
lua << EOF
|
2022-07-13 14:01:34 +00:00
|
|
|
vim.o.guifont = "DejaVu Sans Mono:h8"
|
|
|
|
|
|
|
|
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 }
|
|
|
|
${builtins.readFile ./themes.lua }
|
2022-07-21 06:24:04 +00:00
|
|
|
${builtins.readFile ./project-nvim.lua }
|
2022-06-26 12:42:49 +00:00
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|