From 4684efd8216bd3b4d2f2af7b439e030309e85206 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 26 Aug 2023 16:06:53 -0600 Subject: feat: add neovim-qt support (windows) and .editorconfig --- .editorconfig | 14 ++++++++++++++ ginit.vim | 29 +++++++++++++++++++++++++++++ lua/plugins/init.lua | 2 ++ 3 files changed, 45 insertions(+) create mode 100644 .editorconfig create mode 100644 ginit.vim diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3ff67ef --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# https://EditorConfig.org +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +# 4 space indentation +[*.lua] +indent_style = space +indent_size = 4 diff --git a/ginit.vim b/ginit.vim new file mode 100644 index 0000000..5645ef2 --- /dev/null +++ b/ginit.vim @@ -0,0 +1,29 @@ +" Enable Mouse +set mouse=a + +" Set Editor Font +if exists(':GuiFont') + " Use GuiFont! to ignore font errors + GuiFont! NotoMono Nerd Font Mono +endif + +" Disable GUI Tabline +if exists(':GuiTabline') + GuiTabline 0 +endif + +" Disable GUI Popupmenu +if exists(':GuiPopupmenu') + GuiPopupmenu 0 +endif + +" Enable GUI ScrollBar +if exists(':GuiScrollBar') + GuiScrollBar 1 +endif + +" Right Click Context Menu (Copy-Cut-Paste) +nnoremap :call GuiShowContextMenu() +inoremap :call GuiShowContextMenu() +xnoremap :call GuiShowContextMenu()gv +snoremap :call GuiShowContextMenu()gv diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 6c9cc8c..c0cf279 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -9,4 +9,6 @@ return { { 'folke/which-key.nvim', opts = {} }, -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', opts = {} }, + -- required for nvim-qt on windows + { 'equalsraf/neovim-gui-shim' }, } -- cgit v1.2.3-70-g09d2