diff options
author | Tyler Davis <tydavis@gmail.com> | 2022-01-24 06:05:54 +0000 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2022-01-24 06:05:54 +0000 |
commit | b216ec0757114240aaec9fbe096540bac86a2f89 (patch) | |
tree | 3db3c7f5119a99422739c3319a6d0595111d95ab | |
parent | ca6a962b913cfb9ef395d66dec3a228eedaa8b93 (diff) | |
download | dotfiles-b216ec0757114240aaec9fbe096540bac86a2f89.tar.gz dotfiles-b216ec0757114240aaec9fbe096540bac86a2f89.zip |
nvim: Switching to lua for config
-rw-r--r-- | .config/nvim/init.lua | 82 | ||||
-rw-r--r-- | .config/nvim/init.vim.bak (renamed from .config/nvim/init.vim) | 0 | ||||
-rw-r--r-- | .setup/gitlist | 13 | ||||
-rw-r--r-- | .tmux.conf | 6 |
4 files changed, 100 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..88187e3 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,82 @@ +-- Package management +require "paq" { + "savq/paq-nvim"; -- Let Paq manage itself + + -- LSP + "neovim/nvim-lspconfig"; -- Mind the semi-colons + "nvim-lua/lsp_extensions.nvim"; + "nvim-lua/lsp-status.nvim"; + "nvim-lua/completion-nvim"; + + -- Features + "jremmen/vim-ripgrep"; + "vim-scripts/DrawIt"; + "rust-lang/rust.vim"; + "fatih/vim-go"; + "nvim-telescope/telescope.nvim"; +} + +-- Useful globals +HOME = os.getenv("HOME") + +-- Core settings +vim.g.mapleader = '\\' + +-- Sidebar +vim.o.number = true -- line number on the left +vim.o.numberwidth = 2 -- always reserve 2 spaces for line number +vim.o.signcolumn = 'yes' -- keep 1 column for coc.vim check +vim.o.modelines = 0 +vim.o.showcmd = true -- display command in bottom bar + +-- Files and interface +vim.o.encoding = "utf-8" +vim.o.backspace = "eol,start,indent" -- backspace works on every char in insert mode +vim.o.completeopt = 'menuone,noselect' +vim.o.history = 500 +--vim.o.dictionary = '/usr/share/dict/words' +vim.o.startofline = true + +vim.o.expandtab = true -- expand tab to spaces +vim.o.autoindent = true +vim.o.smartindent = true +vim.o.tabstop = 4 +vim.o.shiftwidth = 4 -- indentation rule +vim.o.shiftround = true + +-- Display +vim.o.showmatch = true -- show matching brackets +vim.o.scrolloff = 7 -- always show 3 rows from edge of the screen +vim.o.synmaxcol = 250 -- stop syntax highlight after x lines for performance +vim.o.laststatus = 2 -- always show status line + +vim.o.list = false -- do not display white characters +vim.o.foldenable = false +vim.o.foldlevel = 4 -- limit folding to 4 levels +vim.o.foldmethod = 'syntax' -- use language syntax to generate folds +vim.o.matchtime = 2 -- delay (tenths of seconds) before showing matching paren + +vim.o.errorbells = false +vim.o.visualbell = false + +-- Search +vim.o.incsearch = true -- starts searching as soon as typing, without enter needed +vim.o.ignorecase = true -- ignore letter case when searching +vim.o.smartcase = true -- case insentive unless capitals used in search + +-- Colors +vim.o.background = "light" +-- Can't set some values with lua yet +vim.cmd [[ + syntax off + colorscheme peachpuff +]] + +-- Backup files +vim.o.backup = true -- use backup files +vim.o.writebackup = false +vim.o.swapfile = false -- do not use swap file +vim.o.undodir = HOME .. '/.vim/tmp/undo//' -- undo files +vim.o.backupdir = HOME .. '/.vim/tmp/backup//' -- backups +vim.o.directory = '/.vim/tmp/swap//' -- swap files + diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim.bak index dea37b2..dea37b2 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim.bak diff --git a/.setup/gitlist b/.setup/gitlist index 11d1fba..945db94 100644 --- a/.setup/gitlist +++ b/.setup/gitlist @@ -184,6 +184,13 @@ } }, { + "path": "work/aws-centralized-users-config/", + "remotes": { + "origin": "https://github.com/tydavis/aws-centralized-users-config.git", + "upstream": "https://github.com/hpe-hcss/aws-centralized-users-config.git" + } + }, + { "path": "work/cluster-gen/", "remotes": { "origin": "https://github.com/hpe-hcss/cluster-gen.git" @@ -235,6 +242,12 @@ } }, { + "path": "work/go-svc-demo/", + "remotes": { + "origin": "https://github.com/hpe-hcss/APP000101-go-nr-demo.git" + } + }, + { "path": "work/iam/authorization/", "remotes": { "origin": "https://github.com/tydavis/authorization.git", @@ -1,8 +1,12 @@ # Reduce Esc-key processing delay set -sg escape-time 10 +# Enable focus-events +set-option -g focus-events on + # Defaults -set -g default-terminal "xterm-256color" +#set -g default-terminal "xterm-256color" +set -g default-terminal "tmux-256color" #set -ga terminal-overrides ",xterm-termite:Tc" set -ga terminal-overrides ",xterm-256color:Tc" |