ref(nvim): sorted configs into modules

This commit is contained in:
Léana 江 2023-02-23 11:02:24 +01:00
parent 5632160e50
commit 2a601dd621
15 changed files with 212 additions and 224 deletions

View file

@ -0,0 +1,43 @@
-- UI
vim.o.hlsearch = false
vim.o.relativenumber = true
vim.o.mouse = 'a'
vim.o.breakindent = true
vim.o.undofile = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.updatetime = 500
vim.o.termguicolors = true
vim.o.completeopt = "menu,preview"
vim.o.scrolloff = 8
vim.wo.signcolumn = "yes"
vim.wo.number = true
vim.opt.wrap = true
vim.opt.backup = false
vim.cmd "colorscheme one-nvim"
-- Tabwidth and shit
-- vim.api.nvim_create_autocmd('FileType', {
-- pattern = {
-- 'lua', 'scala'
-- },
-- callback = function()
-- vim.opt.shiftwidth = 2
-- vim.opt.softtabstop = 2
-- vim.opt.tabstop = 2
-- end,
-- })
-- vim.api.nvim_create_autocmd('FileType', {
-- pattern = {
-- 'rust', 'fish', 'python'
-- },
-- callback = function()
-- vim.opt.shiftwidth = 4
-- vim.opt.softtabstop = 4
-- vim.opt.tabstop = 4
-- end,
-- })