mirror of
https://github.com/dwinkler1/nvimConfig.git
synced 2026-02-19 22:40:57 -05:00
init wrapper-module config
This commit is contained in:
commit
91755583fd
46 changed files with 4277 additions and 0 deletions
20
ftplugin/python.lua
Normal file
20
ftplugin/python.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
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,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue