nvim-configs/init.lua

31 lines
663 B
Lua
Raw Permalink Normal View History

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
2025-02-04 16:00:43 +08:00
if vim.fn.has('win32') == 1 then
vim.opt.shell = 'cmd.exe'
end
2024-10-15 16:50:20 +08:00
vim.opt.guifont="FiraCode Nerd Font Mono,Microsoft YaHei,微软雅黑:h12"
2024-10-15 15:13:41 +08:00
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'