2024-10-06 13:16:37 +08:00
|
|
|
if vim.g.vscode then
|
|
|
|
|
-- VSCode extension
|
|
|
|
|
else
|
|
|
|
|
-- ordinary Neovim
|
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
require("config.lazy")
|
|
|
|
|
end
|
|
|
|
|
|
2024-10-15 15:13:41 +08:00
|
|
|
vim.opt.guifont="FiraCode Nerd Font Mono, Microsoft YaHei:h12"
|
|
|
|
|
|
2024-10-06 13:16:37 +08:00
|
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
|
vim.opt.softtabstop = 4
|
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
|
vim.opt.autoindent = true
|
|
|
|
|
|
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
|
vim.opt.background = "dark"
|
|
|
|
|
vim.opt.title = true
|
|
|
|
|
vim.opt.number = true
|
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
|
vim.opt.ttyfast = true
|
2024-10-11 00:34:52 +08:00
|
|
|
vim.opt.signcolumn = 'yes'
|