From f0483666fa9dfd81821a610650a742e775d9d534 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 7 Sep 2023 22:28:08 +0200 Subject: [PATCH] suda usage --- lua/plex/config/options.lua | 2 ++ lua/plex/plugins/editor.lua | 2 +- lua/plex/plugins/extras/editor/vim-eunuch.lua | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plex/config/options.lua b/lua/plex/config/options.lua index b1364d8..11aef7e 100644 --- a/lua/plex/config/options.lua +++ b/lua/plex/config/options.lua @@ -213,6 +213,8 @@ vim.g.loaded_node_provider = 0 vim.g.no_gitrebase_maps = 1 -- See share/nvim/runtime/ftplugin/gitrebase.vim vim.g.no_man_maps = 1 -- See share/nvim/runtime/ftplugin/man.vim +vim.g.suda_smart_edit = 1 -- smart suda open and write + -- Filetype detection -- === diff --git a/lua/plex/plugins/editor.lua b/lua/plex/plugins/editor.lua index b8ead1b..c1a0f6e 100644 --- a/lua/plex/plugins/editor.lua +++ b/lua/plex/plugins/editor.lua @@ -8,7 +8,7 @@ return { ----------------------------------------------------------------------------- { 'nmac427/guess-indent.nvim', lazy = false, priority = 50, config = true }, { 'tweekmonster/helpful.vim', cmd = 'HelpfulVersion' }, - { 'lambdalisue/suda.vim', event = 'BufRead' }, + { 'lambdalisue/suda.vim', lazy = false, event = 'BufRead' }, ----------------------------------------------------------------------------- { diff --git a/lua/plex/plugins/extras/editor/vim-eunuch.lua b/lua/plex/plugins/extras/editor/vim-eunuch.lua index c767058..2dfd252 100644 --- a/lua/plex/plugins/extras/editor/vim-eunuch.lua +++ b/lua/plex/plugins/extras/editor/vim-eunuch.lua @@ -7,6 +7,7 @@ return { -- :Chmod -- and also some more, but those are easy done with shell "tpope/vim-eunuch", + enabled = false, lazy=false, } }