dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit df64d16502bbd9055abe49735ccd9054c7561559 (patch)
parent aa10d00f7aa1223c9b2c0053c5424c26233553fe
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun, 14 Aug 2022 19:14:39 -0400

nvim: Update for *.jsx files, line numbers for pairing

Diffstat:
M.config/nvim/init.lua | 5+++++
M.gitignore | 4++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua @@ -1,6 +1,9 @@ -- init.lua ; my nvim config vim.cmd [[colorscheme default]] +-- Line numbers essential for pairing +vim.opt.number = true + -- Persistent undo files in ~/.local/share/nvim/undo vim.opt.undofile = true @@ -15,6 +18,8 @@ vim.cmd [[autocmd FileType markdown setlocal et sw=4 sts=4 tw=80 ]] vim.cmd [[autocmd FileType python setlocal et sw=4 sts=4]] vim.cmd [[autocmd FileType javascript setlocal et sw=2 sts=2]] vim.cmd [[autocmd FileType typescriptreact setlocal et sw=2 sts=2]] +vim.cmd [[autocmd BufRead,BufNewFile *.jsx set filetype=javascript]] + -- Switch between windows with Ctrl-h/j/k/l vim.api.nvim_set_keymap("n", "<C-h>", "<C-w>h", { noremap = true }) diff --git a/.gitignore b/.gitignore @@ -7,3 +7,7 @@ # Local nvim config .config/nvim/local.lua + +# Local nvim plugins +.config/nvim/pack +