tune up astronvim
This commit is contained in:
parent
d686961cd7
commit
f26d34ff58
7 changed files with 106 additions and 32 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
- name: Install Debian packages
|
- name: Install Debian packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- qalculate-gtk
|
- qalculate-gtk
|
||||||
- rofi-dev
|
- rofi-dev
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
- name: Install os-agnostic packages
|
- name: Install os-agnostic packages
|
||||||
become: yes
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- git
|
- git
|
||||||
|
|
@ -12,22 +12,23 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install Debian packages
|
- name: Install Debian packages
|
||||||
become: yes
|
become: true
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
import_tasks: debian.yml
|
ansible.builtin.import_tasks: debian.yml
|
||||||
|
|
||||||
- name: Install RHEL packages
|
- name: Install RHEL packages
|
||||||
become: yes
|
become: true
|
||||||
when: ansible_os_family in ["RedHat", "Nobara"]
|
when: ansible_os_family in ["RedHat", "Nobara"]
|
||||||
import_tasks: rhel.yaml
|
ansible.builtin.import_tasks: rhel.yaml
|
||||||
|
tags:
|
||||||
|
- rhel
|
||||||
|
|
||||||
- name: Install Rust packages
|
- name: Install Rust packages
|
||||||
import_tasks: rust.yml
|
ansible.builtin.import_tasks: rust.yml
|
||||||
tags:
|
tags:
|
||||||
- rust
|
- rust
|
||||||
|
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
import_tasks: python.yml
|
ansible.builtin.import_tasks: python.yml
|
||||||
tags:
|
tags:
|
||||||
- python
|
- python
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install RHEL packages
|
- name: Install RHEL packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- rofi-devel
|
- rofi-devel
|
||||||
- qalculate
|
- qalculate
|
||||||
|
|
@ -8,5 +8,6 @@
|
||||||
- libtool
|
- libtool
|
||||||
- cheat
|
- cheat
|
||||||
- gcc-c++
|
- gcc-c++
|
||||||
|
- neovim
|
||||||
|
- python3-neovim
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
# rust install, shamelessly stolen from https://waylonwalker.com/install-rust/
|
# rust install, shamelessly stolen from https://waylonwalker.com/install-rust/
|
||||||
- name: Check if cargo is installed
|
- name: Check if cargo is installed
|
||||||
shell: ls ~/.cargo
|
ansible.builtin.command: ls ~/.cargo
|
||||||
register: cargo_exists
|
register: cargo_exists
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Download rust installer
|
- name: Download rust installer
|
||||||
when: cargo_exists is failed
|
when: cargo_exists is failed
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: https://sh.rustup.rs
|
url: https://sh.rustup.rs
|
||||||
dest: /tmp/sh.rustup.rs
|
dest: /tmp/sh.rustup.rs
|
||||||
mode: '0755'
|
mode: "0755"
|
||||||
force: 'yes'
|
force: "yes"
|
||||||
|
|
||||||
- name: Install rust and cargo
|
- name: Install rust and cargo
|
||||||
when: cargo_exists is failed
|
when: cargo_exists is failed
|
||||||
shell: /tmp/sh.rustup.rs -y
|
ansible.builtin.command: /tmp/sh.rustup.rs -y
|
||||||
|
|
||||||
- name: Install cargo packages
|
- name: Install cargo packages
|
||||||
community.general.cargo:
|
community.general.cargo:
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,82 @@ return {
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"AstroNvim/astrocommunity",
|
||||||
as = "catppuccin",
|
|
||||||
config = function()
|
{ import = "astrocommunity.colorscheme.catppuccin" },
|
||||||
require("catppuccin").setup {}
|
{
|
||||||
end,
|
"catppuccin",
|
||||||
|
opts = {
|
||||||
|
integrations = {
|
||||||
|
sandwich = false,
|
||||||
|
noice = true,
|
||||||
|
mini = true,
|
||||||
|
leap = true,
|
||||||
|
markdown = true,
|
||||||
|
neotest = true,
|
||||||
|
cmp = true,
|
||||||
|
overseer = true,
|
||||||
|
lsp_trouble = true,
|
||||||
|
rainbow_delimiters = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{ import = "astrocommunity.bars-and-lines.smartcolumn-nvim" },
|
||||||
|
|
||||||
|
{
|
||||||
|
"m4xshen/smartcolumn.nvim",
|
||||||
|
opts = {
|
||||||
|
colorcolumn = 120,
|
||||||
|
disabled_filetypes = { "help" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{ import = "astrocommunity.editing-support.auto-save-nvim" },
|
||||||
|
{ import = "astrocommunity.editing-support.nvim-devdocs" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.diagnostics.lsp_lines-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.debugging.nvim-bqf" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.code-runner.compiler-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.bars-and-lines.vim-illuminate" },
|
||||||
|
{ import = "astrocommunity.bars-and-lines.lualine-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.git.blame-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.indent.indent-blankline-nvim" },
|
||||||
|
{ import = "astrocommunity.indent.mini-indentscope" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.pack.ansible" },
|
||||||
|
{ import = "astrocommunity.pack.bash" },
|
||||||
|
{ import = "astrocommunity.pack.docker" },
|
||||||
|
--{ import = "astrocommunity.pack.go" },
|
||||||
|
--{ import = "astrocommunity.pack.html-css" },
|
||||||
|
{ import = "astrocommunity.pack.json" },
|
||||||
|
{ import = "astrocommunity.pack.lua" },
|
||||||
|
{ import = "astrocommunity.pack.markdown" },
|
||||||
|
--{ import = "astrocommunity.pack.nix" },
|
||||||
|
{ import = "astrocommunity.pack.python-ruff" },
|
||||||
|
{ import = "astrocommunity.pack.terraform" },
|
||||||
|
{ import = "astrocommunity.pack.toml" },
|
||||||
|
{ import = "astrocommunity.pack.yaml" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.scrolling.cinnamon-nvim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.split-and-window.minimap-vim" },
|
||||||
|
|
||||||
|
{ import = "astrocommunity.workflow.hardtime-nvim" },
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -38,11 +109,12 @@ return {
|
||||||
list = true,
|
list = true,
|
||||||
listchars = { tab = "│→", extends = "⟩", precedes = "⟨", trail = "·", nbsp = "␣" },
|
listchars = { tab = "│→", extends = "⟩", precedes = "⟨", trail = "·", nbsp = "␣" },
|
||||||
showbreak = "↪ ",
|
showbreak = "↪ ",
|
||||||
showtabline = 1,
|
|
||||||
wrap = true,
|
wrap = true,
|
||||||
|
laststatus = 3,
|
||||||
|
splitkeep = "screen",
|
||||||
},
|
},
|
||||||
g = {
|
g = {
|
||||||
icons_enabled = false,
|
icons_enabled = true,
|
||||||
mapleader = " ",
|
mapleader = " ",
|
||||||
autoformat_enabled = true,
|
autoformat_enabled = true,
|
||||||
cmp_enabled = true,
|
cmp_enabled = true,
|
||||||
|
|
@ -50,6 +122,6 @@ return {
|
||||||
diagnostics_enabled = true,
|
diagnostics_enabled = true,
|
||||||
status_diagnostics_enabled = true,
|
status_diagnostics_enabled = true,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,9 @@
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
navigate = true
|
navigate = true
|
||||||
light = false
|
light = false
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
[diff]
|
[diff]
|
||||||
|
|
@ -18,3 +16,5 @@
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
[push]
|
[push]
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
|
|
||||||
|
|
@ -73,16 +73,16 @@ color7 #B5BFE2
|
||||||
color15 #A5ADCE
|
color15 #A5ADCE
|
||||||
|
|
||||||
### misc
|
### misc
|
||||||
|
|
||||||
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
|
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
|
||||||
allow_hyperlinks yes
|
allow_hyperlinks yes
|
||||||
shell_integration enabled
|
shell_integration enabled
|
||||||
wayland_titlebar_color system
|
wayland_titlebar_color system
|
||||||
background_opacity 0.8
|
background_opacity 0.8
|
||||||
font_size 17.0
|
font_size 17.0
|
||||||
|
tab_bar_style powerline
|
||||||
|
|
||||||
# maps
|
# maps
|
||||||
|
|
||||||
map ctrl+c copy_or_interrupt
|
map ctrl+c copy_or_interrupt
|
||||||
map ctrl+shift+enter new_tab
|
map ctrl+shift+enter new_tab
|
||||||
map ctrl+shift+n new_window
|
map ctrl+shift+n new_window
|
||||||
|
map ctrl+shift+backspace close_tab
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue