From 0226d1aeb620ee3b6defad549a89b92d57ca627c Mon Sep 17 00:00:00 2001 From: fiplox Date: Tue, 8 Aug 2023 17:13:00 +0200 Subject: [PATCH] feat!: remove neorg, adjust oil --- lua/plugins/init.lua | 56 +++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index de3dd99..5d13220 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -139,7 +139,7 @@ return { disable_builtin_notifications = false, use_magit_keybindings = false, -- Change the default way of opening neogit - kind = 'replace', + kind = 'tab', -- The time after which an output console is shown for slow running commands console_timeout = 2000, -- Automatically show console if a command takes more than console_timeout milliseconds @@ -210,12 +210,25 @@ return { -- lazy = false, event = 'Syntax', opts = { + columns = { + "icon", + "permissions", + "size", + "mtime", + }, -- Buffer-local options to use for oil buffers buf_options = { buflisted = false, }, -- Window-local options to use for oil buffers win_options = { + wrap = false, + signcolumn = "no", + cursorcolumn = false, + foldcolumn = "0", + spell = false, + list = false, + conceallevel = 3, concealcursor = 'nvic', }, keymaps = { @@ -285,13 +298,13 @@ return { -- dependencies = 'windwp/nvim-ts-autotag', event = 'VeryLazy', config = function() - -- require('nvim-treesitter.parsers').get_parser_configs().asm = { - -- install_info = { - -- url = 'https://github.com/rush-rs/tree-sitter-asm.git', - -- files = { 'src/parser.c' }, - -- branch = 'main', - -- }, - -- } + require('nvim-treesitter.parsers').get_parser_configs().asm = { + install_info = { + url = 'https://github.com/rush-rs/tree-sitter-asm.git', + files = { 'src/parser.c' }, + branch = 'main', + }, + } local configs = require 'nvim-treesitter.configs' configs.setup { @@ -331,33 +344,6 @@ return { width = 0.6, }, }, - { - "nvim-neorg/neorg", - cmd = { "Neorg" }, - ft = { "norg" }, - build = ":Neorg sync-parsers", - dependencies = { "nvim-lua/plenary.nvim" }, - config = function() - require("neorg").setup { - load = { - ["core.integrations.treesitter"] = {}, - ["core.defaults"] = {}, -- Loads default behaviour - ["core.concealer"] = {}, -- Adds pretty icons to your documents - ["core.export"] = {}, - ["core.ui"] = {}, - ["core.completion"] = { config = { engine = "nvim-cmp" } }, - ["core.dirman"] = { -- Manages Neorg workspaces - config = { - workspaces = { - notes = "~/notes", - }, - default_workspace = "notes", - }, - }, - }, - } - end, - }, { "ecthelionvi/NeoSwap.nvim", opts = {}