diff --git a/lua/nxvim/client/fvim_loaded.lua b/lua/nxvim/client/fvim_loaded.lua index 841242b..ea7eaa4 100644 --- a/lua/nxvim/client/fvim_loaded.lua +++ b/lua/nxvim/client/fvim_loaded.lua @@ -8,8 +8,8 @@ vim.cmd([[ " Background composition " 'none', 'transparent', 'blur' or 'acrylic' - FVimBackgroundComposition 'acrylic' - FVimBackgroundOpacity 0.85 + FVimBackgroundComposition 'acrylic' + FVimBackgroundOpacity 0.85 FVimBackgroundAltOpacity 0.85 " Debug UI overlay diff --git a/lua/nxvim/client/gnvim.lua b/lua/nxvim/client/gnvim.lua index 7465583..4f93722 100644 --- a/lua/nxvim/client/gnvim.lua +++ b/lua/nxvim/client/gnvim.lua @@ -1,6 +1,4 @@ -local opts = { - guifont = "JetBrainsMono Nerd Font Mono:h12.5", -} +vim.opt.guifont = "JetBrainsMono Nerd Font Mono:h12.5" local function set_hl() nx.hl({ @@ -12,5 +10,3 @@ local function set_hl() end nx.au({ { "UIEnter", once = true, callback = set_hl } }) - -return opts diff --git a/lua/nxvim/client/goneovim.lua b/lua/nxvim/client/goneovim.lua index 04a8c4d..dc79050 100644 --- a/lua/nxvim/client/goneovim.lua +++ b/lua/nxvim/client/goneovim.lua @@ -1,5 +1 @@ -local opts = { - fillchars__append = "vert: ", -} - -return opts +vim.opt.fillchars:append("vert: ") diff --git a/lua/nxvim/client/init.lua b/lua/nxvim/client/init.lua index 5fe19d3..eb92a8c 100644 --- a/lua/nxvim/client/init.lua +++ b/lua/nxvim/client/init.lua @@ -16,7 +16,7 @@ end nx.opts = { float_win_border = "rounded", transparency = true, - second_font = false, + second_font = true, } -- MacOS @@ -36,29 +36,26 @@ end local function init_gui() -- General GUI options - local opts = { - fillchars__append = [[vert:│]], - guifont = vim.g.osx and "Hasklug Nerd Font Mono:h14" or "Hasklug Nerd Font Mono:h11", - guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait600-blinkoff800-blinkon900-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175", - linespace = vim.g.osx and 3 or 2, - winblend = 10, - pumblend = 10, - } + local opt = vim.opt + opt.fillchars:append("vert:│") + opt.guifont = vim.g.osx and "Hasklug Nerd Font Mono:h14" or "Hasklug Nerd Font Mono:h11" + opt.guicursor = + "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait600-blinkoff800-blinkon900-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175" + -- linespace = vim.g.osx and 3 or 2 + opt.linespace = 4 + opt.winblend = 10 + opt.pumblend = 10 + nx.opts.second_font = false -- GUI Plugins require("nxvim.plugins.size-matters") - - return opts end function M.load_opts() if not vim.g.loaded_gui then return end - - local gui_opts = init_gui() - local client_opts = require("nxvim.client." .. vim.g.loaded_gui) - - vim.schedule(function() nx.set(vim.tbl_deep_extend("keep", client_opts, gui_opts), vim.opt) end) + init_gui() + require("nxvim.client." .. vim.g.loaded_gui) end return M diff --git a/lua/nxvim/client/neovide.lua b/lua/nxvim/client/neovide.lua index 40c51f1..0d58d82 100644 --- a/lua/nxvim/client/neovide.lua +++ b/lua/nxvim/client/neovide.lua @@ -1,11 +1,11 @@ -local opts = { - guifont = vim.g.osx and "Hasklug Nerd Font Mono:h16:#e-antialias:#h-none" - or "Hasklug Nerd Font Mono:h12:#e-antialias:#h-none", - -- guifont = "JetBrainsMono Nerd Font Mono:h11:#e-antialias:#h-none", -} +local opt = vim.opt +opt.guifont = vim.g.osx and "Hasklug Nerd Font Mono:h16:#e-antialias:#h-none" + -- or "Hasklug Nerd Font Mono:h12.5:#e-antialias:#h-none", + or "Hasklug Nerd Font Mono:h12.5" +-- guifont = "JetBrainsMono Nerd Font Mono:h12", if vim.g.multigrid then - opts.winblend = 15 - opts.pumblend = 15 + opt.winblend = 15 + opt.pumblend = 15 end nx.set({ @@ -23,5 +23,3 @@ nx.set({ neovide_unlink_border_highlights = true, -- neovide_scroll_animation_length = 0.35, }) - -return opts diff --git a/lua/nxvim/client/nvui.lua b/lua/nxvim/client/nvui.lua index 8b1864c..6ab873e 100644 --- a/lua/nxvim/client/nvui.lua +++ b/lua/nxvim/client/nvui.lua @@ -1,9 +1,5 @@ -local opts = { - fillchars__append = [[eob: ,fold: ,vert:│]], -} +vim.opt.fillchars:append("eob: ,fold: ,vert:│") vim.cmd("NvuiOpacity 0.94") nx.map({ "", ",[,],h,l") +-- Folds +o.foldlevel = 99 +o.foldlevelstart = 99 +o.foldcolumn = "1" +-- Indentation +o.expandtab = false +o.smartindent = true +o.shiftwidth = 0 +o.tabstop = 3 + +-- Load client-specific opts and overwrites require("nxvim.client").load_opts()