diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-03-21 09:27:51 +0100 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-03-21 09:27:51 +0100 |
| commit | 30196e455be943777f56da672dee039ca6a27932 (patch) | |
| tree | 23ca8d20fdd439d58834ce8c7e22cf5b253725d0 /config/nvim | |
| parent | ca5e88f2e8bf0a8fb40724a19f9b9e66de9ad52d (diff) | |
| download | dotfiles-30196e455be943777f56da672dee039ca6a27932.tar.gz dotfiles-30196e455be943777f56da672dee039ca6a27932.tar.bz2 dotfiles-30196e455be943777f56da672dee039ca6a27932.zip | |
Added black python formatter
Diffstat (limited to 'config/nvim')
| -rw-r--r-- | config/nvim/init.lua | 11 | ||||
| -rw-r--r-- | config/nvim/lua/plugins.lua | 10 |
2 files changed, 10 insertions, 11 deletions
diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 7665221..db908c6 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -43,17 +43,6 @@ vim.opt.laststatus=2 -- always a statusline (all window) vim.opt.showcmd = true -- show current partial command in the bottom right vim.opt.showmode = false -- dont show current mode (i.e --INSERT--) --- colorscheme -vim.opt.termguicolors = true -vim.opt.background = "dark" -vim.cmd [[ colorscheme gruvbox ]] -vim.g.gruvbox_italic = 1 -vim.g.gruvbox_bold = 1 -vim.g.gruvbox_termcolors = 256 -vim.g.gruvbox_contrast_dark = 'medium' -vim.g.gruvbox_contrast_light = 'hard' -vim.g.gruvbox_invert_selection = 0 - -- remove ugly treesitter error highlight require 'nvim-treesitter.highlight' local hlmap = vim.treesitter.highlighter.hl_map diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index b26decb..2156a52 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -9,6 +9,16 @@ return require('packer').startup(function() use 'romainl/vim-cool' -- only highlight search matches when searching use 'lukas-reineke/indent-blankline.nvim' + -- python formatter + use { + 'psf/black', + branch = 'stable', + ft = 'python', + config = function() + vim.cmd [[ autocmd BufWritePre *.py Black ]] + end + } + -- tags managment use { 'ludovicchabant/vim-gutentags', |
