From e6e8ebe10aa40e5a3be2b94cdf3b324f3d3e52e0 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Fri, 9 Aug 2024 22:11:23 -0500 Subject: split-dotfiles --- gentoo/.config/nvim | 1 + gentoo/.config/nvim/init.org | 22 ---------------------- gentoo/.config/nvim/lua/appearance.org | 15 --------------- gentoo/.config/nvim/lua/behaviour.org | 19 ------------------- gentoo/.config/nvim/lua/plugins.org | 27 --------------------------- 5 files changed, 1 insertion(+), 83 deletions(-) create mode 120000 gentoo/.config/nvim delete mode 100644 gentoo/.config/nvim/init.org delete mode 100644 gentoo/.config/nvim/lua/appearance.org delete mode 100644 gentoo/.config/nvim/lua/behaviour.org delete mode 100644 gentoo/.config/nvim/lua/plugins.org (limited to 'gentoo/.config/nvim') diff --git a/gentoo/.config/nvim b/gentoo/.config/nvim new file mode 120000 index 0000000..a0abd03 --- /dev/null +++ b/gentoo/.config/nvim @@ -0,0 +1 @@ +../../common/.config/nvim \ No newline at end of file diff --git a/gentoo/.config/nvim/init.org b/gentoo/.config/nvim/init.org deleted file mode 100644 index 9c15739..0000000 --- a/gentoo/.config/nvim/init.org +++ /dev/null @@ -1,22 +0,0 @@ -#+title: Neovim Settings -This is the entry point for my Neovim configuration. I don't use Neovim much these days, so it is very stripped back from what it once was. Emacs is much comfier for most uses, so Neovim is mostly relegated to editing system configuration files. - -Disable timeout to speed things up. -#+begin_src lua :tangle ~/.config/nvim/init.lua :mkdirp yes - vim.cmd([[set notimeout]]) -#+end_src - -Install plugins in the [[./lua/plugins.org][plugins.lua]] file. -#+begin_src lua :tangle ~/.config/nvim/init.lua :mkdirp yes - require('plugins') -#+end_src - -Set up behaviour in the [[./lua/behaviour.org][behaviour.lua]] file. -#+begin_src lua :tangle ~/.config/nvim/init.lua :mkdirp yes - require('behaviour') -#+end_src - -Set up appearance in the [[./lua/appearance.org][appearance.lua]] file. -#+begin_src lua :tangle ~/.config/nvim/init.lua :mkdirp yes - require('appearance') -#+end_src diff --git a/gentoo/.config/nvim/lua/appearance.org b/gentoo/.config/nvim/lua/appearance.org deleted file mode 100644 index 274f438..0000000 --- a/gentoo/.config/nvim/lua/appearance.org +++ /dev/null @@ -1,15 +0,0 @@ -#+title: Neovim Appearance Settings -Use line numbers. -#+begin_src lua :tangle ~/.config/nvim/lua/appearance.lua :mkdirp yes - vim.opt.number = true -#+end_src - -Turn on syntax highlighting. -#+begin_src lua :tangle ~/.config/nvim/lua/appearance.lua :mkdirp yes - vim.cmd([[ - set termguicolors - syntax on - colorscheme default - set background=light - ]]) -#+end_src diff --git a/gentoo/.config/nvim/lua/behaviour.org b/gentoo/.config/nvim/lua/behaviour.org deleted file mode 100644 index 871b65e..0000000 --- a/gentoo/.config/nvim/lua/behaviour.org +++ /dev/null @@ -1,19 +0,0 @@ -#+title: Neovim Behaviour Settings - -Use tabs with width 4. -#+begin_src lua :tangle ~/.config/nvim/lua/behaviour.lua :mkdirp yes - vim.opt.tabstop = 4 - vim.opt.expandtab = true - vim.opt.shiftwidth = 4 - vim.opt.autoindent = true -#+end_src - -Better command line completion. -#+begin_src lua :tangle ~/.config/nvim/lua/behaviour.lua :mkdirp yes - vim.opt.wildmode = 'longest,list' -#+end_src - -Better management of file types. -#+begin_src lua :tangle ~/.config/nvim/lua/behaviour.lua :mkdirp yes - vim.cmd('filetype plugin indent on') -#+end_src diff --git a/gentoo/.config/nvim/lua/plugins.org b/gentoo/.config/nvim/lua/plugins.org deleted file mode 100644 index f3027f9..0000000 --- a/gentoo/.config/nvim/lua/plugins.org +++ /dev/null @@ -1,27 +0,0 @@ -#+title: Neovim Plugins -* Setup -Use =lazy= to manage plugins. This block activates =lazy=. -#+begin_src lua :tangle ~/.config/nvim/lua/plugins.lua :mkdirp yes - local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" - if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", - lazypath, - }) - end - vim.opt.rtp:prepend(lazypath) -#+end_src - -* Plugins -I use =lightline= for a nice status bar. The Ayu theme matches my overall colour scheme. =delimitmate= provides better delimiter handling. Trailing whitespace is highlighted with =vim-trailing-whitespace=. -#+begin_src lua :tangle ~/.config/nvim/lua/plugins.lua :mkdirp yes - require('lazy').setup({ - 'itchyny/lightline.vim', - 'Raimondi/delimitMate', - 'bronson/vim-trailing-whitespace', - }) -#+end_src -- cgit v1.2.3