aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 10:00:41 -0500
committerXander Swan <email>2025-12-03 10:00:41 -0500
commitef76de9cd2829069b78e438bf788a76b0b85c583 (patch)
tree47845e9c24c3ab7301786137933c1f4fe04e6825 /.config/nvim/init.lua
hello, world
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua54
1 files changed, 54 insertions, 0 deletions
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 = '<space>'
+map('i', key .. 'jk', '<escape>', {})
+map('n', key .. 'n', [[:NvimTreeToggle<cr>]], {})
+map('n', key .. 'f', [[:Telescope find_files<cr>]], {})
+map('n', key .. 'g', [[:Git<cr>]], {})
+map('n', key .. 'to', [[:TermOpen<cr><cr>]], {})
+
+-- Move panes
+map('n', '<C-h>', '<C-w>h', {})
+map('n', '<C-j>', '<C-w>j', {})
+map('n', '<C-k>', '<C-w>k', {})
+map('n', '<C-l>', '<C-w>l', {})
+