UTF-8 encoding

This commit is contained in:
Joel Lau 2024-02-15 23:45:55 +08:00
parent 7af594fd31
commit af14a5d527
No known key found for this signature in database
GPG key ID: 5C11071C7BA68EC2
2 changed files with 35 additions and 6 deletions

View file

@ -202,15 +202,11 @@ require('lazy').setup({
{
-- Theme inspired by Atom
'navarasu/onedark.nvim',
'rebelot/kanagawa.nvim',
priority = 1000,
lazy = false,
config = function()
require('onedark').setup {
-- Set a style preset. 'dark' is default.
style = 'dark', -- dark, darker, cool, deep, warm, warmer, light
}
require('onedark').load()
vim.cmd.colorscheme('kanagawa')
end,
},
@ -289,6 +285,11 @@ require('lazy').setup({
-- See `:help vim.o`
-- NOTE: You can change these options as you wish!
-- set encoding to UTF-8
vim.g.encoding = 'UTF-8'
vim.g.fileencoding = 'UTF-8'
vim.g.scriptencoding = 'UTF-8'
-- Set highlight on search
vim.o.hlsearch = false