mirror of
https://github.com/dwinkler1/nvimConfig.git
synced 2026-02-19 22:40:57 -05:00
20 lines
581 B
Lua
20 lines
581 B
Lua
|
|
vim.g.slime_python_ipython = 1
|
|
vim.b.slime_cell_delimiter = vim.b.slime_cell_delimiter or "# %%"
|
|
|
|
local ts_lib = Config.treesitter_helpers
|
|
local global_nodes_python = { 'module' }
|
|
ts_lib.setup_keybindings(global_nodes_python)
|
|
|
|
local conform_format_group =
|
|
vim.api.nvim_create_augroup("PythonConformFormat_" .. vim.api.nvim_get_current_buf(), { clear = true })
|
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
|
group = conform_format_group,
|
|
buffer = 0,
|
|
callback = function()
|
|
require("conform").format({
|
|
timeout_ms = 1000,
|
|
lsp_format = "prefer",
|
|
})
|
|
end,
|
|
})
|