diff --git a/init.lua b/init.lua index a4a21b1..8f09367 100644 --- a/init.lua +++ b/init.lua @@ -19,11 +19,12 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) +require 'options' +require 'autocmd' +require 'keymaps' + require('lazy').setup({ - { import = 'options' }, - { import = 'keymaps' }, { import = 'plugins' }, - { import = 'autocmd' }, }, {}) -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/autocmd.lua b/lua/autocmd.lua index d3c30c1..22743a2 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -2,5 +2,3 @@ vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set colorc vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set colorcolumn=80,100', pattern = { '*.rs' } }) vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set splitright', pattern = { '*' } }) vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set splitbelow', pattern = { '*' } }) - -return {} diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 9d2058b..2ba6ce3 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -39,5 +39,3 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist) -- terminal vim.keymap.set('t', '', vim.api.nvim_replace_termcodes('', true, true, true), { desc = 'Escape terminal mode' }) - -return {} diff --git a/lua/options.lua b/lua/options.lua index d1eaffc..53e0f05 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -39,5 +39,3 @@ vim.o.timeoutlen = 300 vim.o.completeopt = 'menuone,noselect' vim.o.termguicolors = true - -return {}