From 96ddb7a6119994a4f00f640d46be5e017faa98fb Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 21 Apr 2026 08:00:23 +0100 Subject: [PATCH] Stuff --- lua/opt.lua | 1 + lua/plugins/oil.lua | 2 +- lua/plugins/treesitter.lua | 5 +++++ lua/plugins/yazi.lua | 6 ------ 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/opt.lua b/lua/opt.lua index 15f8466..c8753dd 100644 --- a/lua/opt.lua +++ b/lua/opt.lua @@ -75,6 +75,7 @@ vim.opt.softtabstop = 4 vim.opt.expandtab = true -- Automatically indent code vim.opt.smartindent = true +vim.opt.autoindent = true -- Save the file when switching buffers vim.opt.autowriteall = true diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index bb89057..afd514c 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -1,7 +1,7 @@ -- Filesystem manager -- require('helpers').edit_cf('po', '/lua/plugins/oil.lua') -- --- vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) +vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) return { 'stevearc/oil.nvim', diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 31d9490..f92d7b5 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -19,6 +19,10 @@ return { 'vimdoc', 'php', 'yaml', + 'vue', + 'javascript', + 'typescript', + 'css', } require('nvim-treesitter').install(langs) @@ -26,6 +30,7 @@ return { pattern = langs, callback = function() vim.treesitter.start() + vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end, }) end, diff --git a/lua/plugins/yazi.lua b/lua/plugins/yazi.lua index 08bed19..08a4c51 100644 --- a/lua/plugins/yazi.lua +++ b/lua/plugins/yazi.lua @@ -8,12 +8,6 @@ return { }, keys = { -- 👇 in this section, choose your own keymappings! - { - '-', - mode = { 'n', 'v' }, - 'Yazi', - desc = 'Open yazi at the current file', - }, { -- Open in the current working directory '\\',