summary refs log tree commit diff stats
path: root/.config/nvim/lua/core
diff options
context:
space:
mode:
authorChristian Krinitsin <christian@krinitsin.xyz>2024-03-16 21:00:19 +0100
committerChristian Krinitsin <christian@krinitsin.xyz>2024-03-16 21:00:19 +0100
commitb8a4392c8754a56265701f97f4833b447efff29a (patch)
treec7a0f84d29ace7a215201311ebc02e1e8eb7f952 /.config/nvim/lua/core
downloaddotfiles-b8a4392c8754a56265701f97f4833b447efff29a.tar.gz
dotfiles-b8a4392c8754a56265701f97f4833b447efff29a.zip
init
Diffstat (limited to '.config/nvim/lua/core')
-rw-r--r--.config/nvim/lua/core/keymaps.lua10
-rw-r--r--.config/nvim/lua/core/lazy.lua15
-rw-r--r--.config/nvim/lua/core/options.lua27
3 files changed, 52 insertions, 0 deletions
diff --git a/.config/nvim/lua/core/keymaps.lua b/.config/nvim/lua/core/keymaps.lua
new file mode 100644
index 0000000..5200427
--- /dev/null
+++ b/.config/nvim/lua/core/keymaps.lua
@@ -0,0 +1,10 @@
+local map = vim.keymap.set
+
+map("", "<Space>", "<Nop>", {})
+vim.g.mapleader = " "
+vim.g.maplocalleader = " "
+
+map("i", "jk", "<Esc>", {})
+
+vim.keymap.set('n', '<leader>ff', ':Telescope find_files theme=dropdown<CR>', {})
+vim.keymap.set('n', '<leader>lg', ':LazyGit<CR>', {})
diff --git a/.config/nvim/lua/core/lazy.lua b/.config/nvim/lua/core/lazy.lua
new file mode 100644
index 0000000..169284a
--- /dev/null
+++ b/.config/nvim/lua/core/lazy.lua
@@ -0,0 +1,15 @@
+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", -- latest stable release
+    lazypath,
+  })
+end
+vim.opt.rtp:prepend(lazypath)
+
+require("lazy").setup("plugins")
diff --git a/.config/nvim/lua/core/options.lua b/.config/nvim/lua/core/options.lua
new file mode 100644
index 0000000..8f5b36e
--- /dev/null
+++ b/.config/nvim/lua/core/options.lua
@@ -0,0 +1,27 @@
+vim.opt.clipboard = 'unnamedplus'
+vim.opt.mouse = 'a'
+vim.opt.shell='/bin/bash'
+
+vim.opt.backup=false
+vim.opt.writebackup=false
+vim.opt.updatetime=300
+vim.opt.signcolumn="yes"
+
+vim.opt.tabstop = 4                 -- number of visual spaces per TAB
+vim.opt.softtabstop = 4             -- number of spacesin tab when editing
+vim.opt.shiftwidth = 4              -- insert 4 spaces on a tab
+vim.opt.expandtab = true            -- tabs are spaces, mainly because of python
+vim.opt.smartindent=true
+vim.opt.autoindent=true
+vim.opt.smarttab=true
+
+vim.opt.number = true               -- show absolute number
+vim.opt.relativenumber = true       -- add numbers to each line on the left side
+vim.opt.splitbelow = true           -- open new vertical split bottom
+vim.opt.splitright = true           -- open new horizontal splits right
+vim.opt.termguicolors = true        -- enabl 24-bit RGB color in the TUI
+vim.opt.showmode = false            -- we are experienced, wo don't need the "-- INSERT --" mode hint
+
+vim.opt.incsearch = true            -- search as characters are entered
+vim.opt.ignorecase = true           -- ignore case in searches by default
+vim.opt.smartcase = true            -- but make it case sensitive if an uppercase is entered