mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 05:38:38 +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.splitright = true
|
||||||
vim.opt.splitbelow = 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.
|
-- Sets how neovim will display certain whitespace characters in the editor.
|
||||||
-- See `:help 'list'`
|
-- See `:help 'list'`
|
||||||
-- and `:help 'listchars'`
|
-- and `:help 'listchars'`
|
||||||
|
@ -163,6 +167,10 @@ vim.opt.confirm = true
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- 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
|
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||||
-- See `:help hlsearch`
|
-- See `:help hlsearch`
|
||||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||||
|
@ -770,6 +778,7 @@ require('lazy').setup({
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
go = { 'gofmt', 'goimports' },
|
go = { 'gofmt', 'goimports' },
|
||||||
bash = { 'shfmt' },
|
bash = { 'shfmt' },
|
||||||
|
python = { 'black', 'ruff', 'isort' },
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
-- python = { "isort", "black" },
|
-- python = { "isort", "black" },
|
||||||
--
|
--
|
||||||
|
|
|
@ -16,6 +16,11 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
popup_border_style = 'NC', -- or "" to use 'winborder' on Neovim v0.11+
|
popup_border_style = 'NC', -- or "" to use 'winborder' on Neovim v0.11+
|
||||||
filesystem = {
|
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 = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
['\\'] = 'close_window',
|
['\\'] = 'close_window',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue