chore: dont use lazy for some imports
This commit is contained in:
parent
b86fd44312
commit
13a695c846
7
init.lua
7
init.lua
|
@ -19,11 +19,12 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require 'options'
|
||||||
|
require 'autocmd'
|
||||||
|
require 'keymaps'
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
{ import = 'options' },
|
|
||||||
{ import = 'keymaps' },
|
|
||||||
{ import = 'plugins' },
|
{ import = 'plugins' },
|
||||||
{ import = 'autocmd' },
|
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
|
|
|
@ -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 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 splitright', pattern = { '*' } })
|
||||||
vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set splitbelow', pattern = { '*' } })
|
vim.api.nvim_create_autocmd({ 'BufEnter, BufWinEnter' }, { command = 'set splitbelow', pattern = { '*' } })
|
||||||
|
|
||||||
return {}
|
|
||||||
|
|
|
@ -39,5 +39,3 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist)
|
||||||
|
|
||||||
-- terminal
|
-- terminal
|
||||||
vim.keymap.set('t', '<C-x>', vim.api.nvim_replace_termcodes('<C-\\><C-N>', true, true, true), { desc = 'Escape terminal mode' })
|
vim.keymap.set('t', '<C-x>', vim.api.nvim_replace_termcodes('<C-\\><C-N>', true, true, true), { desc = 'Escape terminal mode' })
|
||||||
|
|
||||||
return {}
|
|
||||||
|
|
|
@ -39,5 +39,3 @@ vim.o.timeoutlen = 300
|
||||||
vim.o.completeopt = 'menuone,noselect'
|
vim.o.completeopt = 'menuone,noselect'
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
return {}
|
|
||||||
|
|
Loading…
Reference in New Issue