From 215addfe5b701dd902f2334ea59a9ff089d9e14f Mon Sep 17 00:00:00 2001 From: khaydarov Date: Thu, 12 Jun 2025 18:06:08 +0500 Subject: [PATCH] add python support, some keymap and options --- init.lua | 9 +++++++++ lua/kickstart/plugins/neo-tree.lua | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/init.lua b/init.lua index 9ce7e32b..65094b03 100644 --- a/init.lua +++ b/init.lua @@ -140,6 +140,10 @@ vim.opt.timeoutlen = 300 vim.opt.splitright = true vim.opt.splitbelow = true +-- If i put this 2 line here swap window goaway +vim.o.backup = false +vim.o.swapfile = false + -- Sets how neovim will display certain whitespace characters in the editor. -- See `:help 'list'` -- and `:help 'listchars'` @@ -163,6 +167,10 @@ vim.opt.confirm = true -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` +-- Multitab if it can be call that, you visual () some line and can tab all line in one time +vim.keymap.set('x', '', '', '>gv|') + -- Clear highlights on search when pressing in normal mode -- See `:help hlsearch` vim.keymap.set('n', '', 'nohlsearch') @@ -770,6 +778,7 @@ require('lazy').setup({ lua = { 'stylua' }, go = { 'gofmt', 'goimports' }, bash = { 'shfmt' }, + python = { 'black', 'ruff', 'isort' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index e18fe3f1..1e518e52 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -16,6 +16,11 @@ return { opts = { popup_border_style = 'NC', -- or "" to use 'winborder' on Neovim v0.11+ filesystem = { + filtered_items = { + visible = true, -- This is what you want: If you set this to `true`, all "hide" just mean "dimmed out" + hide_dotfiles = false, + hide_gitignored = false, + }, window = { mappings = { ['\\'] = 'close_window',