diff --git a/after/plugin/aerial.lua b/after/plugin/aerial.lua new file mode 100644 index 0000000..c8012a9 --- /dev/null +++ b/after/plugin/aerial.lua @@ -0,0 +1,11 @@ +require("aerial").setup({ + -- optionally use on_attach to set keymaps when aerial has attached to a buffer + on_attach = function(bufnr) + -- Jump forwards/backwards with '{' and '}' + vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr }) + vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr }) + end, +}) +-- You probably also want to set a keymap to toggle aerial +vim.keymap.set("n", "ta", "AerialToggle float",{ desc = 'toggle Aerial' }) +vim.keymap.set("n", "a", "AerialToggle left",{ desc = 'toggle Aerial' }) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 0f725d9..30fe6dd 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -77,8 +77,15 @@ require('mason-lspconfig').setup({ }, filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue"}, capabilities = capabilities, + on_attach = function(client) + client.server_capabilities.document_formatting = false + end, + }), + require('lspconfig').volar.setup({ + on_attach = function(client) + client.server_capabilities.document_formatting = false + end, }), - require('lspconfig').volar.setup({}), require('lspconfig').rust_analyzer.setup({ capabilities = capabilities, cmd = { diff --git a/lua/pippy/lazy.lua b/lua/pippy/lazy.lua index d3cdbce..58b71b2 100644 --- a/lua/pippy/lazy.lua +++ b/lua/pippy/lazy.lua @@ -51,6 +51,15 @@ require("lazy").setup({ {'xiyaowong/transparent.nvim'}, { 'numToStr/Comment.nvim', opts = {} }, { 'mg979/vim-visual-multi' }, + { + 'stevearc/aerial.nvim', + opts = {}, + -- Optional dependencies + dependencies = { + "nvim-treesitter/nvim-treesitter", + "nvim-tree/nvim-web-devicons" + }, + }, { "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },