mirror of
https://github.com/Derisis13/dotfiles.git
synced 2025-12-07 11:52:49 +01:00
feat(nvim): added molten.nvim for jupyter-like behavior
This commit is contained in:
@@ -15,15 +15,15 @@ vim.filetype.add({
|
||||
})
|
||||
-- Hyprlang LSP
|
||||
autocmd({'BufEnter', 'BufWinEnter'}, {
|
||||
pattern = {"*.hl", "hypr*.conf"},
|
||||
callback = function(event)
|
||||
print(string.format("starting hyprls for %s", vim.inspect(event)))
|
||||
vim.lsp.start {
|
||||
name = "hyprlang",
|
||||
cmd = {"hyprls"},
|
||||
root_dir = vim.fn.getcwd(),
|
||||
}
|
||||
end
|
||||
pattern = {"*.hl", "hypr*.conf"},
|
||||
callback = function(event)
|
||||
print(string.format("starting hyprls for %s", vim.inspect(event)))
|
||||
vim.lsp.start {
|
||||
name = "hyprlang",
|
||||
cmd = {"hyprls"},
|
||||
root_dir = vim.fn.getcwd(),
|
||||
}
|
||||
end
|
||||
})
|
||||
|
||||
vim.g.vscode_snippets_path = "~/.config/nvim/snippets"
|
||||
@@ -31,3 +31,16 @@ vim.opt.relativenumber = true
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
-- use prepared venv, mostly for molten
|
||||
local enable_providers = {
|
||||
"python3_provider",
|
||||
-- and so on
|
||||
}
|
||||
|
||||
for _, plugin in pairs(enable_providers) do
|
||||
vim.g["loaded_" .. plugin] = nil
|
||||
vim.cmd("runtime " .. plugin)
|
||||
end
|
||||
|
||||
vim.g.python3_host_prog = vim.fn.expand(os.getenv("XDG_STATE_HOME") .. "/virtualenvs/neovim/bin/python3")
|
||||
|
||||
Reference in New Issue
Block a user