diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index 51416a66..51ab1f49 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -6,22 +6,26 @@ return { "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "MunifTanjim/nui.nvim", }, - config = function() - -- Unless you are still migrating, remove the deprecated commands from v1.x - vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) - - require('neo-tree').setup { - window = { - position = "float", + opts = { + window = { + position = "float", + mappings = { + [""] = "none", }, - filesystem = { - filtered_items = { - visible = true, - hide_dotfiles = false, - hide_gitignored = false, - }, - hijack_netrw_behavior = "open_current", + }, + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + hide_gitignored = false, }, - } + bind_to_cwd = false, + follow_current_file = true, + hijack_netrw_behavior = "open_current", + }, + }, + config = function(_, opts) + vim.g.neo_tree_remove_legacy_commands = 1 + require("neo-tree").setup(opts) end, } diff --git a/lua/custom/plugins/greeter.lua b/lua/custom/plugins/greeter.lua index b2f6b287..9de71aaa 100644 --- a/lua/custom/plugins/greeter.lua +++ b/lua/custom/plugins/greeter.lua @@ -5,6 +5,16 @@ return { "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended }, config = function() - require('alpha').setup(require('alpha.themes.dashboard').config) + local dashboard = require("alpha.themes.dashboard") + dashboard.section.buttons.val = { + dashboard.button("f", " " .. " Find file", ":Telescope find_files "), + dashboard.button("n", " " .. " New file", ":ene startinsert "), + dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles "), + dashboard.button("g", " " .. " Find text", ":Telescope live_grep "), + dashboard.button("c", " " .. " Config", ":e $MYVIMRC "), + dashboard.button("s", " " .. " Restore Session", [[:lua require("persistence").load() ]]), + dashboard.button("q", " " .. " Quit", ":qa"), + } + require('alpha').setup(dashboard.opts) end, } diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 96fc85da..6a1f901a 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -12,6 +12,7 @@ return { "famiu/bufdelete.nvim", "tpope/vim-repeat", "JoosepAlviste/nvim-ts-context-commentstring", + "windwp/nvim-ts-autotag", { "lukas-reineke/virt-column.nvim", opts = { @@ -111,4 +112,49 @@ return { require('mini.surround').setup(opts) end }, + { + "rmagatti/goto-preview", + config = function() + require('goto-preview').setup { + width = 100, -- Width of the floating window + height = 20, -- Height of the floating window + default_mappings = true, -- Bind default mappings + debug = false, -- Print debug information + opacity = nil, -- 0-100 opacity level of the floating window where 100 is fully transparent. + post_open_hook = nil -- A function taking two arguments, a buffer and a window to be ran as a hook. + } + end + }, + { + "simrat39/symbols-outline.nvim", + config = function() + require('symbols-outline').setup() + end + }, + { + "ray-x/lsp_signature.nvim", + event = "BufRead", + config = function() + require("lsp_signature").on_attach() + end, + }, + { + "ellisonleao/glow.nvim", + config = true, + cmd = "Glow", + ft = { + "markdown" + }, + }, + { + "iamcco/markdown-preview.nvim", + build = "cd app && npm install", + ft = { + "markdown" + }, + config = function() + vim.g.mkdp_auto_start = 0 + vim.g.mkdp_filetypes = { "markdown" } + end, + }, } diff --git a/lua/custom/plugins/null-ls.lua b/lua/custom/plugins/null-ls.lua index 467b5934..6ec3af3d 100644 --- a/lua/custom/plugins/null-ls.lua +++ b/lua/custom/plugins/null-ls.lua @@ -12,8 +12,7 @@ return { null_ls.builtins.formatting.black, null_ls.builtins.formatting.latexindent, null_ls.builtins.formatting.shfmt, - null_ls.builtins.code_actions.shellcheck, - null_ls.builtins.diagnostics.shellcheck, + null_ls.builtins.diagnostics.markdownlint, }, } end,