summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim/lua/core/init.lua
diff options
context:
space:
mode:
authorChristian Segundo2024-01-20 23:56:23 +0100
committerChristian Segundo2024-01-20 23:56:23 +0100
commite62c2c3c95855232f0211459966a45a098f46a43 (patch)
tree15b8b4d03804d992c1f233b7d2ed41c06c332caa /public/nvim/.nvim/lua/core/init.lua
parent31f926041eb5e27f6b4d139d43149fa848371e5c (diff)
downloaddotfiles-e62c2c3c95855232f0211459966a45a098f46a43.tar.gz
mass exodusHEADmaster
Diffstat (limited to 'public/nvim/.nvim/lua/core/init.lua')
-rw-r--r--public/nvim/.nvim/lua/core/init.lua64
1 files changed, 0 insertions, 64 deletions
diff --git a/public/nvim/.nvim/lua/core/init.lua b/public/nvim/.nvim/lua/core/init.lua
deleted file mode 100644
index 3c34282..0000000
--- a/public/nvim/.nvim/lua/core/init.lua
+++ /dev/null
@@ -1,64 +0,0 @@
------------------------------------------------------------
--- General
------------------------------------------------------------
-vim.opt.mouse = "a" -- Enable mouse support
-vim.opt.clipboard = "unnamedplus" -- Copy/paste to system clipboard
-vim.opt.termguicolors = true -- Enable 24-bit RGB colors
-vim.o.background = "light"
-vim.opt.hidden = true
-vim.opt.number = true
-vim.o.cursorlineopt = "both"
-vim.opt.conceallevel = 0
-vim.opt.relativenumber = true
-vim.opt.showcmd = true
-vim.opt.showmode = true
-vim.opt.colorcolumn = "80"
-vim.opt.cursorline = true
-vim.opt.foldlevelstart = 99
-vim.opt.showtabline = 1
-vim.opt.laststatus = 3 -- Single status line across all buffers
-vim.opt.undofile = true
-vim.opt.list = true -- Show some invisible characters like tabs
-vim.opt.undodir = vim.fn.stdpath("config") .. "/undo"
-vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal"
--- TODO make it pretty with the highlights
---vim.opt.winbar = '%!luaeval("_winbar()")' -- The winbar text, I don't know if it is possible to embed it directly here :(
---vim.opt.winbar = "%=%m %t%="
------------------------------------------------------------
--- Tabs, indent
------------------------------------------------------------
-vim.opt.expandtab = true -- Use spaces instead of tabs
-vim.opt.shiftwidth = 2 -- Shift 4 spaces when tab
-vim.opt.tabstop = 2 -- 1 tab == 4 spaces
-vim.opt.smartindent = true -- Autoindent new lines
-
------------------------------------------------------------
--- Custom keymaps
------------------------------------------------------------
-vim.api.nvim_set_keymap("i", "jk", "<Esc>", {}) -- Use jk to exit insert mode
-vim.api.nvim_set_keymap("i", "kj", "<Esc>", {}) -- Use kj to exit insert mode
-vim.api.nvim_set_keymap("t", "jk", "<Esc>", {}) -- Use jk to exit terminal mode
-vim.api.nvim_set_keymap("t", "kj", "<Esc>", {}) -- Use kj to exit terminal mode
-vim.api.nvim_set_keymap("t", "<Esc>", "<C-\\><C-n>", { noremap = true }) -- Use Esc to exit terminal mode
-
-vim.api.nvim_set_keymap("i", "<C-t>", "<Esc>:tabnew<CR>", {}) -- New tab
-vim.api.nvim_set_keymap("n", "<C-t>", ":tabnew<CR>", {}) -- New tab
-
--- No arrow keys for movement
---nnoremap <up> <nop>
---nnoremap <down> <nop>
---inoremap <up> <nop>
---inoremap <down> <nop>
---inoremap <left> <nop>
---inoremap <right> <nop>
-
---Left and right to switch buffers
---nnoremap <left> :bp<CR>
---nnoremap <right> :bn<CR>
-
---_winbar = function() -- My custom winbar text
---local filename = vim.fn.expand('%')
---return string.gsub(filename, 'term://.*:', '')
---end
-
-require("core.disable_builtin")