chore(nvim): Fully migrated to lua!

Closes GH-5
This commit is contained in:
Ahmad Ansori Palembani 2024-04-18 13:11:00 +07:00
parent 42ee746b9e
commit 577be59f57
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 21 additions and 10 deletions

View file

@ -20,10 +20,4 @@
-- null2264's NeoVim Config --
--========================================--
-- TODO: Uncomment once we done migrating
-- require("null")
-- FIXME: Turn all these to LUA
vim.cmd("source ~/.config/vim/vim_nix")
vim.cmd("source ~/.config/vim/vim_uni")
vim.cmd("source ~/.config/vim/vim_plug")
require("null")

View file

@ -3,14 +3,22 @@ local g = vim.g
o.encoding = "utf-8"
o.hls = true
o.nu = true
o.number = true
o.relativenumber = true
o.cursorline = true
o.cursorlineopt = "number"
o.ignorecase = true
o.smartcase = true
o.mouse = "a"
o.splitbelow = true
o.splitright = true
-- Remove ugly tilde at the end of a file
-- REF: https://vi.stackexchange.com/a/29181
o.fillchars = "eob: "
g.mapleader = " "
g.guifont = { "Sarasa UI J", ":h16" }

View file

@ -6,8 +6,17 @@ return {
lazy = false,
priority = 1000,
config = function ()
-- load the colorscheme here
vim.cmd([[colorscheme tokyonight]])
require("tokyonight").setup({
style = "moon",
transparent = true,
styles = {
sidebars = "transparent"
},
on_highlights = function (hl, c)
hl.CursorLineNr = { fg = c.yellow, bold = true }
end,
})
vim.cmd([[colorscheme tokyonight-moon]])
end,
},
{