show whitespace for python files

This commit is contained in:
nicholasdominici 2025-04-21 11:43:45 -07:00
parent a5b6985f46
commit 99fe09e442
3 changed files with 61 additions and 2 deletions

View file

@ -213,6 +213,14 @@ vim.api.nvim_create_autocmd('TextYankPost', {
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "python",
callback = function()
vim.opt_local.list = true
vim.opt_local.listchars = { space = "·", tab = "", trail = "", extends = "", precedes = "" }
end,
})
-- [[ Install `lazy.nvim` plugin manager ]]
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
@ -730,7 +738,7 @@ require('lazy').setup({
},
{ -- Autocompletion
'hrsh7th/nvim-cmp',
'saghen/blink.cmp',
event = 'InsertEnter',
dependencies = {
-- Snippet Engine & its associated nvim-cmp source