diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-09 17:44:24 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-09 17:44:24 +0200 |
| commit | 3880e9d317fcd36d50b82e1498897f68b838761c (patch) | |
| tree | 4d1f7a3765195aaa7d713f31d833bf292f708bd6 /.config/nvim | |
| parent | f86dcbc94a6dd69b0128c2f819cdaa5f795d7339 (diff) | |
| download | dotfiles-3880e9d317fcd36d50b82e1498897f68b838761c.tar.gz dotfiles-3880e9d317fcd36d50b82e1498897f68b838761c.zip | |
misc(nvim): add python development environment
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/init.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/plugin/10-treesitter.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/plugin/50-lsp.lua | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index d215c9c..5bdaaf5 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -6,7 +6,7 @@ vim.g.dotfiles = { augroup = vim.api.nvim_create_augroup("dotfiles", {}), -- Single source of truth for per-filetype formatting width -- (textwidth → gw, mdformat --wrap, render-markdown block widths). - textwidth = { sh = 80, lua = 120, markdown = 120, gitcommit = 72 }, + textwidth = { sh = 80, lua = 120, markdown = 120, gitcommit = 72, python = 88 }, } ------------------------------------------------------------------------------------------------------------------------ diff --git a/.config/nvim/plugin/10-treesitter.lua b/.config/nvim/plugin/10-treesitter.lua index 401aa23..8bb9be1 100644 --- a/.config/nvim/plugin/10-treesitter.lua +++ b/.config/nvim/plugin/10-treesitter.lua @@ -10,6 +10,7 @@ require("nvim-treesitter").install({ "ini", "json", "lua", + "python", "readline", "vim", "vimdoc", diff --git a/.config/nvim/plugin/50-lsp.lua b/.config/nvim/plugin/50-lsp.lua index 19eaa95..215dfcb 100644 --- a/.config/nvim/plugin/50-lsp.lua +++ b/.config/nvim/plugin/50-lsp.lua @@ -75,3 +75,10 @@ vim.lsp.enable("marksman") ------------------------------------------------------------------------------------------------------------------------ vim.lsp.enable("vimls") + +------------------------------------------------------------------------------------------------------------------------ +-- Python +------------------------------------------------------------------------------------------------------------------------ + +vim.lsp.enable("basedpyright") +vim.lsp.enable("ruff") |
