mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-22 21:33:30 +02:00
add python support, some keymap and options
This commit is contained in:
parent
098f430525
commit
215addfe5b
2 changed files with 14 additions and 0 deletions
9
init.lua
9
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 (<S-v>) some line and can tab all line in one time
|
||||
vim.keymap.set('x', '<S-tab>', '<gv')
|
||||
vim.keymap.set('x', '<tab>', '>gv|')
|
||||
|
||||
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||
-- See `:help hlsearch`
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
@ -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" },
|
||||
--
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue