diff options
Diffstat (limited to '.config/nvim/init.lua')
| -rw-r--r-- | .config/nvim/init.lua | 59 |
1 files changed, 3 insertions, 56 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 2702afb..8fb9f57 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,62 +1,9 @@ - local packer_path = vim.fn.stdpath('config') .. '/site' vim.o.packpath = vim.o.packpath .. ',' .. packer_path require("plugins") require("plugin_conf") +require("autocomplete") 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 monokai-pro-spectrum') - -opt.ignorecase = true -opt.smartcase = true -opt.incsearch = true - -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', '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>]], {}) -map('n', key .. 'c', [[:noh<cr>]], {}) - --- change pane -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', {}) - -map('o', 'as', 'a"', {}) -map('o', 'is', 'i"', {}) -map('o', 'it', 'i[', {}) -map('o', 'at', 'a[', {}) - -map('t', '<escape>', '<C-\\><C-n>', {}) -map('t', 'jk', '<C-\\><C-n>', {}) - - +require("set") +require("remapping") |
