2024-07-10 06:17:30 +00:00
|
|
|
{ pkgs, theme, ... }:
|
2024-07-10 06:10:56 +00:00
|
|
|
{
|
|
|
|
# symlink for a stable path
|
2024-07-10 10:52:58 +00:00
|
|
|
home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb;
|
2024-07-10 06:10:56 +00:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
2024-07-10 10:52:58 +00:00
|
|
|
package = pkgs.neovim-unwrapped;
|
2024-07-10 06:10:56 +00:00
|
|
|
defaultEditor = true;
|
2024-07-10 10:52:58 +00:00
|
|
|
plugins = with pkgs.vimPlugins; [
|
2024-07-10 06:10:56 +00:00
|
|
|
# theme
|
|
|
|
nvim-solarized-lua
|
|
|
|
|
|
|
|
delimitMate
|
|
|
|
vim-bbye
|
|
|
|
ansible-vim
|
|
|
|
|
|
|
|
# ui
|
|
|
|
dressing-nvim
|
|
|
|
|
|
|
|
# session handling
|
|
|
|
project-nvim
|
|
|
|
auto-session
|
|
|
|
|
|
|
|
# escape handling
|
|
|
|
better-escape-nvim
|
|
|
|
|
|
|
|
nvim-treesitter.withAllGrammars
|
|
|
|
nvim-treesitter-textobjects
|
|
|
|
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
|
|
|
|
vim-illuminate
|
|
|
|
registers-nvim
|
|
|
|
vim-surround
|
|
|
|
|
|
|
|
editorconfig-nvim
|
|
|
|
|
|
|
|
# git
|
|
|
|
gitsigns-nvim
|
|
|
|
vim-fugitive
|
|
|
|
vim-flog
|
|
|
|
git-blame-nvim
|
|
|
|
nvim-web-devicons # used by diffview-nvim
|
|
|
|
|
|
|
|
# snippets
|
|
|
|
friendly-snippets
|
|
|
|
luasnip
|
|
|
|
|
|
|
|
# auto-completion
|
|
|
|
nvim-cmp
|
|
|
|
cmp-nvim-lsp
|
|
|
|
cmp-buffer
|
|
|
|
cmp-path
|
|
|
|
cmp-cmdline
|
|
|
|
cmp-nvim-lua
|
|
|
|
cmp_luasnip
|
|
|
|
cmp-calc
|
|
|
|
cmp-nvim-lsp-signature-help
|
|
|
|
|
|
|
|
# telescope
|
|
|
|
telescope-nvim
|
|
|
|
telescope-fzf-native-nvim
|
|
|
|
telescope-ui-select-nvim
|
|
|
|
|
|
|
|
# LSP
|
|
|
|
nvim-lspconfig
|
|
|
|
lsp-status-nvim
|
|
|
|
rustaceanvim
|
|
|
|
neodev-nvim
|
|
|
|
null-ls-nvim
|
|
|
|
lsp_lines-nvim
|
|
|
|
lsp-inlayhints-nvim
|
|
|
|
|
|
|
|
# debugging
|
|
|
|
nvim-dap
|
|
|
|
nvim-dap-ui
|
|
|
|
|
|
|
|
# neorg
|
|
|
|
neorg
|
|
|
|
neorg-telescope
|
|
|
|
];
|
|
|
|
|
|
|
|
withNodeJs = true;
|
|
|
|
|
2024-07-10 10:52:58 +00:00
|
|
|
extraPackages = with pkgs; [
|
2024-07-10 06:10:56 +00:00
|
|
|
# language servers
|
|
|
|
lua-language-server
|
|
|
|
terraform-ls
|
|
|
|
tflint
|
|
|
|
bash-language-server
|
|
|
|
nodePackages.yaml-language-server
|
|
|
|
nodePackages.prettier
|
|
|
|
nodePackages.eslint_d
|
|
|
|
nodePackages.typescript-language-server
|
|
|
|
nodePackages.typescript
|
|
|
|
nodePackages.dockerfile-language-server-nodejs
|
|
|
|
nodePackages.vscode-langservers-extracted
|
|
|
|
vscode-extensions.vue.volar
|
|
|
|
lldb
|
|
|
|
vscode-extensions.vadimcn.vscode-lldb
|
|
|
|
marksman
|
|
|
|
clang-tools
|
|
|
|
cmake-language-server
|
|
|
|
texlab
|
|
|
|
nixd
|
|
|
|
nixpkgs-fmt
|
|
|
|
bitbake-language-server
|
|
|
|
(python3.withPackages (ps: with ps; [
|
|
|
|
pep8
|
|
|
|
autopep8
|
|
|
|
python-lsp-server
|
|
|
|
]))
|
|
|
|
pyright
|
|
|
|
|
|
|
|
#clipboard
|
|
|
|
xclip
|
|
|
|
];
|
|
|
|
|
|
|
|
extraLuaPackages = luaPackages: [
|
|
|
|
luaPackages.lua-utils-nvim
|
|
|
|
luaPackages.pathlib-nvim
|
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
lua << EOF
|
|
|
|
vim.o.guifont = "DejaVu Sans Mono:h10"
|
|
|
|
|
|
|
|
if vim.g.neovide then
|
|
|
|
vim.g.neovide_fullscreen = true
|
|
|
|
vim.g.neovide_cursor_animation_length = 0.01
|
|
|
|
vim.g.neovide_cursor_trail_length = 0.01
|
|
|
|
end
|
|
|
|
|
|
|
|
${builtins.readFile ./keymaps.lua }
|
|
|
|
${builtins.readFile ./options.lua }
|
|
|
|
${builtins.readFile ./commands.lua }
|
|
|
|
${builtins.readFile ./treesitter.lua }
|
|
|
|
${builtins.readFile ./lspconfig.lua }
|
|
|
|
${builtins.readFile ./auto-session.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 }
|
2024-07-10 06:17:30 +00:00
|
|
|
vim.opt.background = '${theme}'
|
2024-07-10 06:10:56 +00:00
|
|
|
|
|
|
|
${builtins.readFile ./project-nvim.lua }
|
|
|
|
${builtins.readFile ./dap.lua }
|
|
|
|
${builtins.readFile ./neorg.lua }
|
|
|
|
${builtins.readFile ./illuminate.lua }
|
|
|
|
|
|
|
|
vim.g.gitblame_date_format = "%r"
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|