fix: update bash path

This commit is contained in:
Oliver Davies 2022-10-03 17:46:49 +01:00
parent 23d776e537
commit f64b58d6f5
4 changed files with 23 additions and 115 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Quickly navigate between different directories using fzf and tmux sessions # Quickly navigate between different directories using fzf and tmux sessions
# (Thanks, ThePrimeagen!). # (Thanks, ThePrimeagen!).

View file

@ -31,64 +31,17 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
vimAlias = true;
plugins = with pkgs; [
vimPlugins.comment-nvim
vimPlugins.git-worktree-nvim
vimPlugins.gitsigns-nvim
vimPlugins.harpoon
vimPlugins.impatient-nvim
vimPlugins.nvim-web-devicons
vimPlugins.refactoring-nvim
vimPlugins.rest-nvim
vimPlugins.vim-abolish
vimPlugins.vim-highlightedyank
vimPlugins.vim-polyglot
vimPlugins.vim-repeat
vimPlugins.vim-surround
vimPlugins.vim-test
# Treesitter extraConfig = ''
vimPlugins.nvim-treesitter lua << EOF
vimPlugins.nvim-treesitter-context vim.opt.number = true
vimPlugins.nvim-treesitter-textobjects vim.opt.relativenumber = true
EOF
'';
# LSP plugins = with pkgs.vimPlugins; [
vimPlugins.null-ls-nvim plenary-nvim
vimPlugins.nvim-lspconfig telescope-nvim
vimPlugins.lsp-status-nvim
# Completion
vimPlugins.cmp-buffer
vimPlugins.cmp-cmdline
vimPlugins.cmp-nvim-lsp
vimPlugins.cmp-path
vimPlugins.cmp-treesitter
vimPlugins.cmp-vsnip
vimPlugins.cmp_luasnip
vimPlugins.lspkind-nvim
vimPlugins.nvim-cmp
vimPlugins.luasnip
# Telescope
vimPlugins.plenary-nvim
vimPlugins.popup-nvim
vimPlugins.telescope-file-browser-nvim
vimPlugins.telescope-fzf-native-nvim
vimPlugins.telescope-nvim
vimPlugins.telescope-ui-select-nvim
# Git
vimPlugins.neogit
# Databases
vimPlugins.vim-dadbod
vimPlugins.vim-dadbod-ui
vimPlugins.vim-dadbod-completion
# Themes
vimPlugins.nightfox-nvim
]; ];
}; };
} }

View file

@ -34,19 +34,24 @@ in
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_GB.utf8"; i18n.defaultLocale = "en_GB.utf8";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
services.xserver = { services.xserver = {
enable = true;
layout = "gb"; layout = "gb";
xkbVariant = ""; xkbVariant = "";
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks # is the package manager for Lua modules
luadbi-mysql # Database abstraction layer
];
};
}; };
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure console keymap # Configure console keymap
console.keyMap = "uk"; console.keyMap = "uk";
@ -120,7 +125,6 @@ in
tmuxinator tmuxinator
tree tree
unzip unzip
vim
vlc vlc
wget wget
yt-dlp yt-dlp

View file

@ -1,53 +1,4 @@
--- ---
- name: Dependencies
ansible.builtin.package:
name:
- autoconf
- automake
- cmake
- curl
- doxygen
- g++
- gettext
- libtool
- libtool-bin
- ninja-build
- pkg-config
- unzip
state: latest
become: yes
- name: Clone
ansible.builtin.git:
clone: yes
depth: 1
dest: "{{ ansible_user_dir }}/build/neovim"
repo: https://github.com/neovim/neovim.git
# single_branch: yes
update: yes
version: "{{ neovim_version | default('master') }}"
register: clone
- name: Build
make:
chdir: "{{ ansible_user_dir }}/build/neovim"
params:
CMAKE_BUILD_TYPE: RelWithDebInfo
when: clone.changed
- name: Install
make:
chdir: "{{ ansible_user_dir }}/build/neovim"
target: install
become: yes
when: clone.changed
- name: Remove build folder
ansible.builtin.file:
path: "{{ ansible_user_dir }}/build/neovim/build"
state: absent
become: yes
- name: Create .config/nvim directory - name: Create .config/nvim directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_user_dir }}/.config/nvim" path: "{{ ansible_user_dir }}/.config/nvim"