From 56f9b62ab889e74241f9edd4e4eb3489de6be0ae Mon Sep 17 00:00:00 2001 From: "Diego Miguel M. Villamil" Date: Fri, 27 Sep 2024 01:11:43 +0800 Subject: [PATCH] black and isort code formatting now works --- init.lua | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 6094bf5f..be3c72d1 100644 --- a/init.lua +++ b/init.lua @@ -607,14 +607,18 @@ require('lazy').setup({ lsp_format_opt = 'fallback' end return { - timeout_ms = 500, + timeout_ms = 2000, lsp_format = lsp_format_opt, } end, formatters_by_ft = { lua = { 'stylua' }, -- Conform can also run multiple formatters sequentially - -- python = { 'isort', 'black' }, + python = { + 'black', + 'isort', + }, + stop_after_first = false, -- -- You can use 'stop_after_first' to run the first available formatter from the list -- javascript = { "prettierd", "prettier", stop_after_first = true }, @@ -791,6 +795,17 @@ require('lazy').setup({ end, }, { 'sitiom/nvim-numbertoggle' }, + { -- File system editor and explorer + 'stevearc/oil.nvim', + opts = { + view_options = { + show_hidden = true, + }, + }, + -- Optional dependencies + dependencies = { { 'echasnovski/mini.icons', opts = {} } }, + vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }), + }, { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate',