From ef76de9cd2829069b78e438bf788a76b0b85c583 Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Wed, 3 Dec 2025 10:00:41 -0500 Subject: hello, world --- .config/nvim/init.lua | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .config/nvim/init.lua (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..505c687 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,54 @@ + +local packer_path = vim.fn.stdpath('config') .. '/site' +vim.o.packpath = vim.o.packpath .. ',' .. packer_path + +require("plugins") +require("plugin_conf") +require("lsp") + +-- OPTIONS + +local opt = vim.opt + +opt.number = true +opt.relativenumber = false +opt.cursorline = true +opt.scrolloff = 4 +opt.signcolumn = "yes" + +opt.encoding = 'utf8' +opt.fileencoding = 'utf8' +opt.syntax = "ON" +opt.termguicolors = true +vim.api.nvim_command('colorscheme dracula') + +opt.ignorecase = true +opt.smartcase = true +opt.incsearch = true +opt.hlsearch = false + +opt.expandtab = true +opt.shiftwidth = 2 +opt.softtabstop = 2 +opt.tabstop = 2 + +opt.splitright = true +opt.splitbelow = true + +-- KEYS + +local map = vim.api.nvim_set_keymap + +local key = '' +map('i', key .. 'jk', '', {}) +map('n', key .. 'n', [[:NvimTreeToggle]], {}) +map('n', key .. 'f', [[:Telescope find_files]], {}) +map('n', key .. 'g', [[:Git]], {}) +map('n', key .. 'to', [[:TermOpen]], {}) + +-- Move panes +map('n', '', 'h', {}) +map('n', '', 'j', {}) +map('n', '', 'k', {}) +map('n', '', 'l', {}) + -- cgit v1.3-2-g0d8e