fix: update bash path
This commit is contained in:
parent
23d776e537
commit
f64b58d6f5
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Quickly navigate between different directories using fzf and tmux sessions
|
||||
# (Thanks, ThePrimeagen!).
|
||||
|
|
|
@ -31,64 +31,17 @@
|
|||
|
||||
programs.neovim = {
|
||||
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
|
||||
vimPlugins.nvim-treesitter
|
||||
vimPlugins.nvim-treesitter-context
|
||||
vimPlugins.nvim-treesitter-textobjects
|
||||
extraConfig = ''
|
||||
lua << EOF
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
EOF
|
||||
'';
|
||||
|
||||
# LSP
|
||||
vimPlugins.null-ls-nvim
|
||||
vimPlugins.nvim-lspconfig
|
||||
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
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
plenary-nvim
|
||||
telescope-nvim
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,19 +34,24 @@ in
|
|||
# Select internationalisation properties.
|
||||
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 = {
|
||||
enable = true;
|
||||
layout = "gb";
|
||||
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
|
||||
console.keyMap = "uk";
|
||||
|
||||
|
@ -120,7 +125,6 @@ in
|
|||
tmuxinator
|
||||
tree
|
||||
unzip
|
||||
vim
|
||||
vlc
|
||||
wget
|
||||
yt-dlp
|
||||
|
|
|
@ -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
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_user_dir }}/.config/nvim"
|
||||
|
|
Loading…
Reference in a new issue