cleanup(nvim)

Signed-off-by: Chiang Léana <leana.chiang@etudiant.univ-rennes1.fr>
This commit is contained in:
Léana 江 2023-03-09 12:52:07 +01:00 committed by Chiang Léana
parent a5a6446dd1
commit 7b05b136f2
4 changed files with 36 additions and 46 deletions

View file

@ -1,8 +0,0 @@
require("nvim-tree").setup({
view = {
number = true,
relativenumber = true,
}
})
vim.keymap.set("n", "<leader><space>", function() require('nvim-tree.api').tree.toggle() end)

View file

@ -1,33 +1,39 @@
-- 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.smartindent = true
vim.o.updatetime = 500
vim.o.termguicolors = true
vim.o.completeopt = "menu,preview"
vim.o.scrolloff = 8
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.wo.signcolumn = "yes"
vim.wo.number = true
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.signcolumn = "yes"
vim.opt.wrap = true
vim.opt.linebreak = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.wrap = false
-- vim.opt.linebreak = true
-- vim.opt.breakindent = true
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undofile = true
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})
vim.opt.termguicolors = true
vim.opt.mouse = 'a'
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.smartindent = true
vim.opt.scrolloff = 8
vim.api.nvim_create_autocmd(
"TextYankPost",
{
callback = function() vim.highlight.on_yank() end,
group = vim.api.nvim_create_augroup("YankHighlightGroup", { clear = true }),
pattern = '*',
}
)
vim.cmd.colorscheme "one-nvim"
-- vim.o.background = "light"
vim.opt.guifont = { "Cascadia Code:h15" }

View file

@ -1,7 +0,0 @@
require "true-zen".setup()
vim.keymap.set("n", "<leader>zn", ":TZNarrow<CR>", {})
vim.keymap.set("v", "<leader>zn", ":'<,'>TZNarrow<CR>", {})
vim.keymap.set("n", "<leader>zf", ":TZFocus<CR>", {})
vim.keymap.set("n", "<leader>zm", ":TZMinimalist<CR>", {})
vim.keymap.set("n", "<leader>za", ":TZAtaraxis<CR>", {})