Add gui (fvim) settings

Mon, 20 Feb 2023 00:53:33 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 20 Feb 2023 00:53:33 -0600
changeset 1039
91900ecf0e8c
parent 1038
a1321a7e0b77
child 1040
b7d88feee303

Add gui (fvim) settings

.config/nvim/ginit.vim file | annotate | diff | comparison | revisions
.config/nvim/lua/config/options.lua file | annotate | diff | comparison | revisions
new file mode 100755
--- /dev/null
+++ b/.config/nvim/ginit.vim
@@ -0,0 +1,13 @@
+
+set number
+set guifont=DejaVu\ Sans\ Mono:h10
+set linespace=0
+
+if exists("g:fvim_loaded")
+  set guifont=DejaVu\ Sans\ Mono:h12
+  FVimFontLineHeight "+1.0"
+  " FVimFontAutoSnap v:false
+
+  nnoremap <A-CR> :FVimToggleFullScreen<CR>
+endif
+
--- a/.config/nvim/lua/config/options.lua
+++ b/.config/nvim/lua/config/options.lua
@@ -16,17 +16,13 @@ o.diffopt:append("algorithm:patience")
 o.fillchars = "fold: ,vert:│"
 o.linebreak = true
 o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«"
+o.number = false
 o.pumheight = 10
 o.showbreak = "» "
 o.termguicolors = true
 o.signcolumn = "number"
 o.winminwidth = 5
 
--- set font etc
-if vim.fn.has("gui") then
-  o.number = true
-end
-
 -- Behavior
 o.autowriteall = true
 o.backup = true

mercurial